IGroupSecurityService.IsMember Method
Checks whether an identity (e.g. a user or a group) is a member (either direct or indirect) of a group.
Namespace: Microsoft.TeamFoundation.Server
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Function IsMember ( _
groupSid As String, _
identitySid As String _
) As Boolean
bool IsMember(
string groupSid,
string identitySid
)
bool IsMember(
String^ groupSid,
String^ identitySid
)
abstract IsMember :
groupSid:string *
identitySid:string -> bool
function IsMember(
groupSid : String,
identitySid : String
) : boolean
Parameters
groupSid
Type: System.Stringthe unique identifier for the group
identitySid
Type: System.Stringthe unique identifier for the identity
Return Value
Type: System.Boolean
True if and only if the identity is a member (either direct or indirect) of the group; otherwise, false
.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.