ActiveDirectoryRole.IncludesIdentity(String) 方法
定义
返回一个值,该值指示 ActiveDirectoryRole 是否包含指定的标识。Returns a value that indicates whether the ActiveDirectoryRole contains the specified identity.
public:
override bool IncludesIdentity(System::String ^ identity);
public override bool IncludesIdentity (string identity);
override this.IncludesIdentity : string -> bool
Public Overrides Function IncludesIdentity (identity As String) As Boolean
参数
- identity
- String
要搜索的标识。The identity for which to search.
返回
如果 true 包含在 identity 中,则为 ActiveDirectoryRole;否则为 false。true to indicate that identity is included in the ActiveDirectoryRole; otherwise, false.
注解
由于角色是一个或多个对象的一般化,因此许多标识可能由单个角色来描述。Because a role is a generalization of one or more objects, many identities may be described by a single role. 使用 IncludesIdentity 测试指定的标识是否包含在此角色中。Use IncludesIdentity to test that a specified identity is included within this role.