共用方式為


Package.GetOutputPane Method

Gets the requested output window.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Function GetOutputPane ( _
    page As Guid, _
    caption As String _
) As IVsOutputWindowPane
public IVsOutputWindowPane GetOutputPane(
    Guid page,
    string caption
)
public:
IVsOutputWindowPane^ GetOutputPane(
    Guid page, 
    String^ caption
)
member GetOutputPane : 
        page:Guid * 
        caption:string -> IVsOutputWindowPane
public function GetOutputPane(
    page : Guid, 
    caption : String
) : IVsOutputWindowPane

Parameters

  • page
    Type: Guid

    The GUID corresponding to the pane. (See VSConstants class for the GUIDs which correspond to output panes.)

  • caption
    Type: String

    The caption to create if the pane does not exist.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPane
The IVsOutputWindowPane interface. Returns nulla null reference (Nothing in Visual Basic) in case of failure.

Remarks

The GetOutputPane method returns the requested output window pane. This method creates the pane if one does not exist.

.NET Framework Security

See Also

Reference

Package Class

Microsoft.VisualStudio.Shell Namespace