Udostępnij za pośrednictwem


Metoda IVsUIWpfLoader.CreateUIElementOfType — (Object, IVsUIElement)

 

Tworzy element wizualny, biorąc pod uwagę jego typ zarządzany.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop.10.0 (w Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Składnia

int CreateUIElementOfType(
    object pUnkElementType,
    out IVsUIElement ppUIElement
)
int CreateUIElementOfType(
    Object^ pUnkElementType,
    [OutAttribute] IVsUIElement^% ppUIElement
)
abstract CreateUIElementOfType : 
        pUnkElementType:Object *
        ppUIElement:IVsUIElement byref -> int
Function CreateUIElementOfType (
    pUnkElementType As Object,
    <OutAttribute> ByRef ppUIElement As IVsUIElement
) As Integer

Parametry

  • pUnkElementType
    Type: System.Object

    [in] Typ zarządzany, z którym ma zostać utworzony element wizualny.

Wartość zwracana

Type: System.Int32

Jeśli metoda zakończy się pomyślnie, zwraca S_OK. Jeśli nie, zwraca kod błędu.

Przykłady

Zobacz też

Interfejs IVsUIWpfLoader
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku