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.String

    the unique identifier for the group

  • identitySid
    Type: System.String

    the 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

See Also

Reference

IGroupSecurityService Interface

Microsoft.TeamFoundation.Server Namespace