Udostępnij za pośrednictwem


ElementGroupPrototype.IsInRole(ProtoElementBase, Guid) Method

Definition

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

public:
 bool IsInRole(Microsoft::VisualStudio::Modeling::ProtoElementBase ^ protoElementBase, Guid domainRoleId);
public bool IsInRole (Microsoft.VisualStudio.Modeling.ProtoElementBase protoElementBase, Guid domainRoleId);
member this.IsInRole : Microsoft.VisualStudio.Modeling.ProtoElementBase * Guid -> bool
Public Function IsInRole (protoElementBase As ProtoElementBase, domainRoleId As Guid) As Boolean

Parameters

protoElementBase
ProtoElementBase

The ProtoElementBase to test.

domainRoleId
Guid

The Guid of the DomainRoleId to test.

Returns

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

Applies to