GetAuthorizedTasks Method (AuthorizationScope, String[])
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 for the entities.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function GetAuthorizedTasks ( _
catalogAuthorizationScope As AuthorizationScope, _
entities As String() _
) As DataSet
'Usage
Dim instance As CatalogContext
Dim catalogAuthorizationScope As AuthorizationScope
Dim entities As String()
Dim returnValue As DataSet
returnValue = instance.GetAuthorizedTasks(catalogAuthorizationScope, _
entities)
public DataSet GetAuthorizedTasks(
AuthorizationScope catalogAuthorizationScope,
string[] entities
)
public:
DataSet^ GetAuthorizedTasks(
AuthorizationScope catalogAuthorizationScope,
array<String^>^ entities
)
public function GetAuthorizedTasks(
catalogAuthorizationScope : AuthorizationScope,
entities : String[]
) : DataSet
Parameters
- catalogAuthorizationScope
Type: Microsoft.CommerceServer.Catalog..::.AuthorizationScope
The catalog authorization scope.
- entities
Type: array<System..::.String>[]()[]
The entities in the catalogAuthorizationScope the authorized tasks are required for.
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 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" table 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.