Udostępnij za pośrednictwem


Metoda ModelExplorerTreeContainer.AddExplorerNodeCustomSetting —

Kojarzy obrazu z typu elementu w Eksploratorze modelu.

Przestrzeń nazw:  Microsoft.VisualStudio.Modeling.Shell
Zestaw:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (w Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Składnia

'Deklaracja
Protected Sub AddExplorerNodeCustomSetting ( _
    domainClassId As Guid, _
    treeNodeImage As Image, _
    showDomainClassName As Boolean _
)
protected void AddExplorerNodeCustomSetting(
    Guid domainClassId,
    Image treeNodeImage,
    bool showDomainClassName
)

Parametry

  • domainClassId
    Typ: System.Guid
    Identyfikator GUID, który jest przypisany do modelu, do której należy dany element.
  • showDomainClassName
    Typ: System.Boolean
    wartość true, jeżeli chcesz wyświetlić nazwę elementu w Eksploratorze modelu; inaczej, wartość false, jeśli chcesz wyświetlić tylko obraz.

Uwagi

Jeśli obraz niestandardowy nie jest podany dla elementu, używany jest domyślny obraz.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

ModelExplorerTreeContainer Klasa

Przestrzeń nazw Microsoft.VisualStudio.Modeling.Shell