WebWorkflowRole.GetIdentities 方法

定义

返回与 WebWorkflowRole 关联的 ASP.NET 帐户的泛型列表。

public:
 override System::Collections::Generic::IList<System::String ^> ^ GetIdentities();
public override System.Collections.Generic.IList<string> GetIdentities();
override this.GetIdentities : unit -> System.Collections.Generic.IList<string>
Public Overrides Function GetIdentities () As IList(Of String)

返回

表示与 WebWorkflowRole 关联的 ASP.NET 帐户的字符串值的泛型列表。

注解

WindowsTokenRoleProviderIsUserInRole 支持和 GetRolesForUser。 此外,它仅支持当前与请求上下文关联的用户帐户的这些方法,因此不能调用 GetRolesForUser 域中的任何用户帐户。 将 该方法与 /> 结合使用时,将引发以下提供程序异常:

配置的角色提供程序(WindowsTokenRoleProvider)依赖于Windows 身份验证来确定允许用户成为其成员的组。 ASP.NET 角色管理器不能用于管理Windows用户和组。 如果要支持自定义用户/角色分配,请使用 SQLRoleProvider。

适用于