ModelExplorerTreeContainer.AddExplorerNodeCustomSetting Method
Associates an image with an element type in Model Explorer.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaração
Protected Sub AddExplorerNodeCustomSetting ( _
domainClassId As Guid, _
treeNodeImage As Image, _
showDomainClassName As Boolean _
)
protected void AddExplorerNodeCustomSetting(
Guid domainClassId,
Image treeNodeImage,
bool showDomainClassName
)
protected:
void AddExplorerNodeCustomSetting(
Guid domainClassId,
Image^ treeNodeImage,
bool showDomainClassName
)
member AddExplorerNodeCustomSetting :
domainClassId:Guid *
treeNodeImage:Image *
showDomainClassName:bool -> unit
protected function AddExplorerNodeCustomSetting(
domainClassId : Guid,
treeNodeImage : Image,
showDomainClassName : boolean
)
Parameters
- domainClassId
Type: System.Guid
The GUID that is assigned to the model to which the element belongs.
- treeNodeImage
Type: System.Drawing.Image
The image to use with the element.
- showDomainClassName
Type: System.Boolean
true if you want to show the name of the element in Model Explorer; otherwise, false if you want to show only the image.
Remarks
If a custom image is not supplied for an element, the default image is used.
.NET Framework Security
- 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.