Share via


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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.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

  • domainRoleId
    Type: Guid

    The Guid of the DomainRoleId to test.

Return Value

Type: 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