Creates a tool window.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public Function CreateToolWindow ( _
ByRef rguidPersistenceSlot As Guid, _
dwToolWindowId As UInteger _
) As Integer
'使用
Dim instance As ModelingPackage
Dim rguidPersistenceSlot As Guid
Dim dwToolWindowId As UInteger
Dim returnValue As Integer
returnValue = instance.CreateToolWindow(rguidPersistenceSlot, _
dwToolWindowId)
public int CreateToolWindow(
ref Guid rguidPersistenceSlot,
uint dwToolWindowId
)
public:
virtual int CreateToolWindow(
Guid% rguidPersistenceSlot,
unsigned int dwToolWindowId
) sealed
public final function CreateToolWindow(
rguidPersistenceSlot : Guid,
dwToolWindowId : uint
) : int
Parameters
rguidPersistenceSlot
Type: System.Guid%The GUID that is assigned to the tool window.
dwToolWindowId
Type: System.UInt32The ID that is assigned to the tool window.
Return Value
Type: System.Int32
The status of a method. If no errors are found, it returns success. Otherwise, an exception is returned.
Implements
IVsToolWindowFactory.CreateToolWindow(Guid%, UInt32)
Remarks
When this method is called, IVsToolWindowFactory creates the tool window. For more information, see IVsToolWindowFactory.
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.