GetAuthorizedTasks Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Constructs and returns a DataSet object that describes the tasks that the current user is authorized to perform in the catalog system.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function GetAuthorizedTasks As DataSet
'Usage
Dim instance As CatalogContext
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 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 one DataTable: "Tasks". The information in this DataTable 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" DataTable will return a single row containing the ManageCatalogSystem task in the Application scope.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.