Principal.IsMemberOf メソッド

定義

グループが、指定されたグループのメンバーであるかどうかを示すブール値を返します。

オーバーロード

IsMemberOf(PrincipalContext, IdentityType, String)

プリンシパルが、ID の型と値で指定されたグループのメンバーであるかどうかを示すブール値を返します。

IsMemberOf(GroupPrincipal)

プリンシパルが、指定されたグループのメンバーであるかどうかを示すブール値を返します。

IsMemberOf(PrincipalContext, IdentityType, String)

ソース:
Principal.cs
ソース:
Principal.cs
ソース:
Principal.cs

プリンシパルが、ID の型と値で指定されたグループのメンバーであるかどうかを示すブール値を返します。

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

パラメーター

context
PrincipalContext

操作が実行されるサーバーまたはドメインを指定する PrincipalContext

identityType
IdentityType

ID 値の型を指定する IdentityType 列挙値。

identityValue
String

グループの ID。

戻り値

プリンシパルが、指定されたグループのメンバーである場合は true。それ以外の場合は false

属性

例外

ID の型または値が、GroupPrincipal に対応していません。

複数の一致する GroupPrincipal が見つかりました。

注釈

現在のプリンシパルが AD DS プリンシパルの場合、返されるグループには、AD DS オブジェクトのプライマリ グループ ID 属性で示されているように、プリンシパルのプライマリ グループが含まれます。

適用対象

IsMemberOf(GroupPrincipal)

ソース:
Principal.cs
ソース:
Principal.cs
ソース:
Principal.cs

プリンシパルが、指定されたグループのメンバーであるかどうかを示すブール値を返します。

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

パラメーター

group
GroupPrincipal

プリンシパル メンバーシップを確認する対象の GroupPrincipal オブジェクト。

戻り値

プリンシパルが、指定されたグループのメンバーである場合は true。それ以外の場合は false

属性

例外

group パラメーターに指定された GroupPrincipal が見つかりませんでした。

複数の一致する GroupPrincipal が見つかりました。

注釈

現在のプリンシパルが AD DS プリンシパルの場合、返されるグループには、AD DS オブジェクトのプライマリ グループ ID 属性で示されているように、プリンシパルのプライマリ グループが含まれます。

適用対象