ActiveDirectoryRole.GetSecurityIdentifiers 方法
定义
返回与当前 SecurityIdentifier 相关联的 ActiveDirectoryRole 对象的泛型列表。Returns a generic list of SecurityIdentifier objects associated with the current ActiveDirectoryRole.
public:
System::Collections::Generic::IList<System::Security::Principal::SecurityIdentifier ^> ^ GetSecurityIdentifiers();
public System.Collections.Generic.IList<System.Security.Principal.SecurityIdentifier> GetSecurityIdentifiers ();
member this.GetSecurityIdentifiers : unit -> System.Collections.Generic.IList<System.Security.Principal.SecurityIdentifier>
Public Function GetSecurityIdentifiers () As IList(Of SecurityIdentifier)
返回
一个与当前 SecurityIdentifier 相关联的 ActiveDirectoryRole 对象的泛型列表。A generic list of SecurityIdentifier objects associated with the current ActiveDirectoryRole.
注解
GetSecurityIdentifiers 检查由 DirectoryEntry 方法返回的每个 GetEntries,以查看各项在其 Properties 集合中是否具有一个安全标识符。GetSecurityIdentifiers checks each DirectoryEntry returned by the GetEntries method to see if the entry has a security identifier in its Properties collection. 如果 DirectoryEntry 具有此类属性,则 GetSecurityIdentifiers 向它返回的列表中添加一个 SecurityIdentifier。If the DirectoryEntry has such a property, GetSecurityIdentifiers adds a SecurityIdentifier to the list it returns.