Share via


ActiveDirectoryRoleFactory.CreateFromSecurityIdentifier 方法

定义

使用 Windows NT ActiveDirectoryRole 创建 SecurityIdentifier 的实例。

public:
 static System::Workflow::Activities::ActiveDirectoryRole ^ CreateFromSecurityIdentifier(System::Security::Principal::SecurityIdentifier ^ sid);
public static System.Workflow.Activities.ActiveDirectoryRole CreateFromSecurityIdentifier (System.Security.Principal.SecurityIdentifier sid);
static member CreateFromSecurityIdentifier : System.Security.Principal.SecurityIdentifier -> System.Workflow.Activities.ActiveDirectoryRole
Public Shared Function CreateFromSecurityIdentifier (sid As SecurityIdentifier) As ActiveDirectoryRole

参数

返回

ActiveDirectoryRole 的实例,它描述指定的 SecurityIdentifier

注解

ActiveDirectoryRole 是用于访问 Active Directory 功能的 WorkflowRole 抽象类的具体实现。 通常,Active Directory 存储区用于存储人员的组织信息。 ActiveDirectoryRole 的主要用途是出于业务原因对此类组织信息进行查询。

适用于