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
'Declaração
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
- targetRoleInfo
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo
Information about the element that is in the relationship as the target role.
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
- 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.