PathSegmentReferencesRole.SetRole(PathSegment, DomainRole) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置角色。
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
- 属性