Package.GetOutputPane Method
Gets the requested output window.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Public Function GetOutputPane ( _
page As Guid, _
caption As String _
) As IVsOutputWindowPane
'使用
Dim instance As Package
Dim page As Guid
Dim caption As String
Dim returnValue As IVsOutputWindowPane
returnValue = instance.GetOutputPane(page, _
caption)
public IVsOutputWindowPane GetOutputPane(
Guid page,
string caption
)
public:
IVsOutputWindowPane^ GetOutputPane(
Guid page,
String^ caption
)
public function GetOutputPane(
page : Guid,
caption : String
) : IVsOutputWindowPane
Parameters
page
Type: System.GuidThe GUID corresponding to the pane. (See VSConstants class for the GUIDs which correspond to output panes.)
caption
Type: System.StringThe caption to create if the pane does not exist.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPane
The IVsOutputWindowPane interface. Returns a 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.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.