다음을 통해 공유


IVsCommandWindowsCollection.Create Method

Creates a new command window in the specified mode.

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

Syntax

‘선언
Function Create ( _
    mode As UInteger, _
    dwToolWindowId As UInteger, _
    fShow As Integer, _
    <OutAttribute> ByRef puCookie As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsCommandWindowsCollection
Dim mode As UInteger
Dim dwToolWindowId As UInteger
Dim fShow As Integer
Dim puCookie As UInteger
Dim returnValue As Integer

returnValue = instance.Create(mode, dwToolWindowId, _
    fShow, puCookie)
int Create(
    uint mode,
    uint dwToolWindowId,
    int fShow,
    out uint puCookie
)
int Create(
    [InAttribute] unsigned int mode, 
    [InAttribute] unsigned int dwToolWindowId, 
    [InAttribute] int fShow, 
    [OutAttribute] unsigned int% puCookie
)
abstract Create : 
        mode:uint32 * 
        dwToolWindowId:uint32 * 
        fShow:int * 
        puCookie:uint32 byref -> int 
function Create(
    mode : uint, 
    dwToolWindowId : uint, 
    fShow : int, 
    puCookie : uint
) : int

Parameters

  • dwToolWindowId
    Type: System.UInt32
    [in] An identifier for the window. Use -1 to have the service choose the ID.
  • fShow
    Type: System.Int32
    [in] Specifies if the command window should be visible when opened or created.
  • puCookie
    Type: System.UInt32%
    [out] A cookie for the command window. Use when closing the window with Close.

Return Value

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT Create(
    [in]    COMMANDWINDOWMODE2 mode,
    [in]    DWORD dwToolWindowId,
    [in]    BOOL fShow,
    [out]   UINT * puCookie
);

.NET Framework Security

See Also

Reference

IVsCommandWindowsCollection Interface

IVsCommandWindowsCollection Members

Microsoft.VisualStudio.Shell.Interop Namespace