PathSegmentReferencesRole.SetRole Method
Sets Role.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'宣告
Public Shared Sub SetRole ( _
element As PathSegment, _
newRole As DomainRole _
)
public static void SetRole(
PathSegment element,
DomainRole newRole
)
public:
static void SetRole(
PathSegment^ element,
DomainRole^ newRole
)
static member SetRole :
element:PathSegment *
newRole:DomainRole -> unit
public static function SetRole(
element : PathSegment,
newRole : DomainRole
)
Parameters
- newRole
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DomainRole
.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.