PathSegmentReferencesRole.SetRole(PathSegment, DomainRole) 方法

定义

设置角色。

public:
 static void SetRole(Microsoft::VisualStudio::Modeling::DslDefinition::PathSegment ^ element, Microsoft::VisualStudio::Modeling::DslDefinition::DomainRole ^ newRole);
[System.Diagnostics.DebuggerStepThrough]
public static void SetRole (Microsoft.VisualStudio.Modeling.DslDefinition.PathSegment element, Microsoft.VisualStudio.Modeling.DslDefinition.DomainRole newRole);
[<System.Diagnostics.DebuggerStepThrough>]
static member SetRole : Microsoft.VisualStudio.Modeling.DslDefinition.PathSegment * Microsoft.VisualStudio.Modeling.DslDefinition.DomainRole -> unit
Public Shared Sub SetRole (element As PathSegment, newRole As DomainRole)

参数

element
PathSegment
newRole
DomainRole
属性

适用于