Jaa


GetAuthorizedTasks Method (AuthorizationScope)

Constructs and returns a DataSet object that describes the tasks that the current user is authorized to perform in the catalog system in the AuthorizationScope.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Function GetAuthorizedTasks ( _
    catalogAuthorizationScope As AuthorizationScope _
) As DataSet
'Usage
Dim instance As CatalogContext
Dim catalogAuthorizationScope As AuthorizationScope
Dim returnValue As DataSet

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

Parameters

Return Value

Type: System.Data..::.DataSet
A DataSet object containing a single DataTable named "Tasks".

Remarks

This method requires the CatalogContext object or Web service to be initialized against a valid authorization policy. The returned DataSet contains a single DataTable named "Tasks". The information in these DataTables is read from the authorization policy and is configurable using the Authorization Manager MMC tool. The "Tasks" table contains the following columns, which are user-dependent:

Column Name

Value

Task

The name of a task for which the current user is authorized.

Scope

The name of the scope in which this task is authorized. The well-defined scope name Application refers to the top-level scope. The user may be authorized to perform the same task in multiple scopes.

If the method is called on a CatalogContext object or Web service that does not have a valid authorization policy then the "Tasks" table will return a single row containing the ManageCatalogSystem task in the Application scope.

Permissions

See Also

Reference

CatalogContext Class

CatalogContext Members

GetAuthorizedTasks Overload

Microsoft.CommerceServer.Catalog Namespace