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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
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.ProtoElementBaseThe ProtoElementBase to test.
domainRoleId
Type: System.GuidThe 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.