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
'Déclaration
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
- protoElementBase
Type: Microsoft.VisualStudio.Modeling.ProtoElementBase
The ProtoElementBase to test.
- 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
- 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.