Partager via


ModelExplorerTreeContainer.CreateRoleTreeNode Method

Creates a tree node that contains a group of subnodes for the element that is in the relationship as the target role.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Déclaration
Public Overridable Function CreateRoleTreeNode ( _
    targetRoleInfo As DomainRoleInfo _
) As RoleTreeNode
public virtual RoleTreeNode CreateRoleTreeNode(
    DomainRoleInfo targetRoleInfo
)
public:
virtual RoleTreeNode^ CreateRoleTreeNode(
    DomainRoleInfo^ targetRoleInfo
)
abstract CreateRoleTreeNode : 
        targetRoleInfo:DomainRoleInfo -> RoleTreeNode 
override CreateRoleTreeNode : 
        targetRoleInfo:DomainRoleInfo -> RoleTreeNode 
public function CreateRoleTreeNode(
    targetRoleInfo : DomainRoleInfo
) : RoleTreeNode

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Shell.RoleTreeNode
The node.

Remarks

You can use this method if a source role can have only one target role.

Role multiplicity can be 1 or 0..1.

.NET Framework Security

See Also

Reference

ModelExplorerTreeContainer Class

Microsoft.VisualStudio.Modeling.Shell Namespace