共用方式為


ElementGroupPrototype.IsInRole Method

Returns true if the passed ProtoElementBase plays in the passed role in this ElementGroupPrototype.

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

Syntax

'宣告
Public Function IsInRole ( _
    protoElementBase As ProtoElementBase, _
    domainRoleId As Guid _
) As Boolean
public bool IsInRole(
    ProtoElementBase protoElementBase,
    Guid domainRoleId
)
public:
bool IsInRole(
    ProtoElementBase^ protoElementBase, 
    Guid domainRoleId
)
member IsInRole : 
        protoElementBase:ProtoElementBase * 
        domainRoleId:Guid -> bool 
public function IsInRole(
    protoElementBase : ProtoElementBase, 
    domainRoleId : Guid
) : boolean

Parameters

  • domainRoleId
    Type: System.Guid
    The Guid of the DomainRoleId to test.

Return Value

Type: System.Boolean
true if the passed ProtoElementBase plays in the passed role in this ElementGroupPrototype.

.NET Framework Security

See Also

Reference

ElementGroupPrototype Class

Microsoft.VisualStudio.Modeling Namespace