GetAuthorizedTasks Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Returns a data set that describes the tasks that the current user is authorized to perform.

Namespace:  Microsoft.CommerceServer.Profiles
Assembly:  Microsoft.CommerceServer.Profiles.CrossTierTypes (in Microsoft.CommerceServer.Profiles.CrossTierTypes.dll)

Syntax

'Declaration
Public Function GetAuthorizedTasks As DataSet
'Usage
Dim instance As ProfileManagementContext
Dim returnValue As DataSet

returnValue = instance.GetAuthorizedTasks()
public DataSet GetAuthorizedTasks()
public:
DataSet^ GetAuthorizedTasks()
public function GetAuthorizedTasks() : DataSet

Return Value

Type: System.Data..::.DataSet
A DataSet that describes the tasks that the current user is authorized to perform.

Exceptions

Exception Condition
AuthorizationPolicyRequiredException

The profile web service was initialized without authorization enabled.

Remarks

The list of possible tasks are as defined in the authorization store. The current user's information will be taken from the ThreadContext and the authorization store will be queried to get the list of tasks the user is allowed to perform.

Permissions

See Also

Reference

ProfileManagementContext Class

ProfileManagementContext Members

Microsoft.CommerceServer.Profiles Namespace