Sdílet prostřednictvím


IVsUIFactory.CreateUIElement – metoda (Guid, UInt32, IVsUIElement)

 

Vytvoří instanci určeného prvku.

Obor názvů:   Microsoft.VisualStudio.Shell.Interop
Sestavení:  Microsoft.VisualStudio.Shell.Interop.10.0 (v Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntaxe

int CreateUIElement(
    [InAttribute] ref Guid guid,
    uint dw,
    out IVsUIElement ppUIElement
)
int CreateUIElement(
    [InAttribute] Guid% guid,
    unsigned int dw,
    [OutAttribute] IVsUIElement^% ppUIElement
)
abstract CreateUIElement : 
        guid:Guid byref *
        dw:uint32 *
        ppUIElement:IVsUIElement byref -> int
Function CreateUIElement (
    <InAttribute> ByRef guid As Guid,
    dw As UInteger,
    <OutAttribute> ByRef ppUIElement As IVsUIElement
) As Integer

Parametry

  • guid
    Identifikátor GUID příkaz.
  • dw
    ID příkazu.
  • ppUIElement
    [výstup] Prvek, který byl vytvořen.

Vrácená hodnota

Type: System.Int32

Pokud metoda uspěje, vrací S_OK.Pokud se nezdaří, vrátí kód chyby.

Viz také

IVsUIFactory – rozhraní
Microsoft.VisualStudio.Shell.Interop – obor názvů

Zpátky na začátek