Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Function IsInRole ( _
protoElementBase As ProtoElementBase, _
domainRoleId As Guid _
) As Boolean
'使用
Dim instance As ElementGroupPrototype
Dim protoElementBase As ProtoElementBase
Dim domainRoleId As Guid
Dim returnValue As Boolean
returnValue = instance.IsInRole(protoElementBase, _
domainRoleId)
public bool IsInRole(
ProtoElementBase protoElementBase,
Guid domainRoleId
)
public:
bool IsInRole(
ProtoElementBase^ protoElementBase,
Guid domainRoleId
)
public function IsInRole(
protoElementBase : ProtoElementBase,
domainRoleId : Guid
) : boolean
Parameters
- protoElementBase
Type: Microsoft.VisualStudio.Modeling.ProtoElementBase
- domainRoleId
Type: System.Guid
Return Value
Type: System.Boolean
Permissions
- 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.