Rediger

Del via


WebWorkflowRole.GetIdentities Method

Definition

Returns a generic list of ASP.NET accounts associated with the WebWorkflowRole.

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)

Returns

A generic list of string values that represent the ASP.NET accounts associated with the WebWorkflowRole.

Remarks

WindowsTokenRoleProvider supports only IsUserInRole and GetRolesForUser. Furthermore, it supports these methods only for the user account that is currently the WindowsPrincipal associated with the request context, so you cannot call GetRolesForUser for any user account in the domain. When using the GetIdentities method with the WindowsTokenRoleProvider, the following provider exception is thrown:

The configured Role Provider (WindowsTokenRoleProvider) relies upon Windows authentication to determine the groups that the user is allowed to be a member of. ASP.NET Role Manager cannot be used to manage Windows users and groups. Use the SQLRoleProvider if you want to support custom user/role assignment.

Applies to