다음을 통해 공유


IVsOutputWindow3.CreatePane2 Method

Creates an output window pane with the specified content type and text view roles. For more information about content types and text view roles, see Editor Extension Points.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

'Declaration
Function CreatePane2 ( _
    ByRef rguidPane As Guid, _
    pszPaneName As String, _
    fInitVisible As Integer, _
    fClearWithSolution As Integer, _
    lpszContentType As String, _
    lpszTextViewRoles As String _
) As Integer
int CreatePane2(
    ref Guid rguidPane,
    string pszPaneName,
    int fInitVisible,
    int fClearWithSolution,
    string lpszContentType,
    string lpszTextViewRoles
)
int CreatePane2(
    [InAttribute] Guid% rguidPane, 
    [InAttribute] String^ pszPaneName, 
    [InAttribute] int fInitVisible, 
    [InAttribute] int fClearWithSolution, 
    [InAttribute] String^ lpszContentType, 
    [InAttribute] String^ lpszTextViewRoles
)
abstract CreatePane2 : 
        rguidPane:Guid byref * 
        pszPaneName:string * 
        fInitVisible:int * 
        fClearWithSolution:int * 
        lpszContentType:string * 
        lpszTextViewRoles:string -> int
function CreatePane2(
    rguidPane : Guid, 
    pszPaneName : String, 
    fInitVisible : int, 
    fClearWithSolution : int, 
    lpszContentType : String, 
    lpszTextViewRoles : String
) : int

Parameters

  • rguidPane
    Type: Guid%

    [in] The GUID of the pane to create.

  • pszPaneName
    Type: String

    [in] The name of the pane.

  • fInitVisible
    Type: Int32

    [in] true if the pane should be visible.

  • fClearWithSolution
    Type: Int32

    [in] true if the pane should be removed when the solution is closed.

  • lpszContentType
    Type: String

    The content type.

  • lpszTextViewRoles
    Type: String

    The text view roles.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsOutputWindow3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace