Share via


Principal.IsMemberOf Yöntem

Tanım

Grubun belirtilen grubun üyesi olup olmadığını belirten bir Boole değeri döndürür.

Aşırı Yüklemeler

IsMemberOf(PrincipalContext, IdentityType, String)

Sorumlunun kimlik türü ve değeriyle belirtilen grubun üyesi olup olmadığını belirten bir Boole değeri döndürür.

IsMemberOf(GroupPrincipal)

Sorumlunun belirtilen grubun üyesi olup olmadığını belirten bir Boole değeri döndürür.

IsMemberOf(PrincipalContext, IdentityType, String)

Kaynak:
Principal.cs
Kaynak:
Principal.cs
Kaynak:
Principal.cs

Sorumlunun kimlik türü ve değeriyle belirtilen grubun üyesi olup olmadığını belirten bir Boole değeri döndürür.

public:
 bool IsMemberOf(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, System::DirectoryServices::AccountManagement::IdentityType identityType, System::String ^ identityValue);
public bool IsMemberOf (System.DirectoryServices.AccountManagement.PrincipalContext context, System.DirectoryServices.AccountManagement.IdentityType identityType, string identityValue);
[System.Security.SecurityCritical]
public bool IsMemberOf (System.DirectoryServices.AccountManagement.PrincipalContext context, System.DirectoryServices.AccountManagement.IdentityType identityType, string identityValue);
member this.IsMemberOf : System.DirectoryServices.AccountManagement.PrincipalContext * System.DirectoryServices.AccountManagement.IdentityType * string -> bool
[<System.Security.SecurityCritical>]
member this.IsMemberOf : System.DirectoryServices.AccountManagement.PrincipalContext * System.DirectoryServices.AccountManagement.IdentityType * string -> bool
Public Function IsMemberOf (context As PrincipalContext, identityType As IdentityType, identityValue As String) As Boolean

Parametreler

context
PrincipalContext

işlemlerin PrincipalContext gerçekleştirildiği sunucuyu veya etki alanını belirten.

identityType
IdentityType

IdentityType Kimlik değerinin türünü belirten bir numaralandırma değeri.

identityValue
String

Grubun kimliği.

Döndürülenler

true sorumlu belirtilen grubun üyesiyse; aksi takdirde false.

Öznitelikler

Özel durumlar

Kimlik türü veya değeri bir GroupPrincipalöğesine karşılık gelmiyor.

Birden fazla eşleşme GroupPrincipal bulundu.

Açıklamalar

Geçerli sorumlu bir AD DS sorumlusuysa, döndürülen gruplar AD DS nesnesinde birincil grup kimliği özniteliği tarafından gösterildiği gibi sorumlunun birincil grubunu içerir.

Şunlara uygulanır

IsMemberOf(GroupPrincipal)

Kaynak:
Principal.cs
Kaynak:
Principal.cs
Kaynak:
Principal.cs

Sorumlunun belirtilen grubun üyesi olup olmadığını belirten bir Boole değeri döndürür.

public:
 bool IsMemberOf(System::DirectoryServices::AccountManagement::GroupPrincipal ^ group);
public bool IsMemberOf (System.DirectoryServices.AccountManagement.GroupPrincipal group);
[System.Security.SecurityCritical]
public bool IsMemberOf (System.DirectoryServices.AccountManagement.GroupPrincipal group);
member this.IsMemberOf : System.DirectoryServices.AccountManagement.GroupPrincipal -> bool
[<System.Security.SecurityCritical>]
member this.IsMemberOf : System.DirectoryServices.AccountManagement.GroupPrincipal -> bool
Public Function IsMemberOf (group As GroupPrincipal) As Boolean

Parametreler

group
GroupPrincipal

GroupPrincipal Asıl üyeliğin belirlendiği nesne.

Döndürülenler

true sorumlu belirtilen grubun üyesiyse; aksi takdirde false.

Öznitelikler

Özel durumlar

GroupPrincipal Grup parametresinde belirtilen bulunamadı.

Birden fazla eşleşme GroupPrincipal bulundu.

Açıklamalar

Geçerli sorumlu bir AD DS sorumlusuysa, döndürülen gruplar AD DS nesnesinde birincil grup kimliği özniteliği tarafından gösterildiği gibi sorumlunun birincil grubunu içerir.

Şunlara uygulanır