共用方式為


OperationNames 類別

Contains the field names and corresponding values for operations that users can perform on items in SQL Server Reporting Services.

繼承階層

System.Object
  Microsoft.ReportingServices.Interfaces.OperationNames

命名空間:  Microsoft.ReportingServices.Interfaces
組件:   Microsoft.ReportingServices.SharePoint.UI.WebParts (在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)
  Microsoft.ReportingServices.Interfaces (在 Microsoft.ReportingServices.Interfaces.dll 中)

語法

'宣告
Public NotInheritable Class OperationNames
'用途
Dim instance As OperationNames
public sealed class OperationNames
public ref class OperationNames sealed
[<SealedAttribute>]
type OperationNames =  class end
public final class OperationNames

OperationNames 型別公開下列成員。

建構函式

  名稱 說明
公用方法 OperationNames Initializes a new instance of the OperationNames class.

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
公用方法 ToString (繼承自 Object。)

上層

欄位

  名稱 說明
公用欄位靜態成員 ExecuteReportDefinition Specifies the “Execute Report Definition” operation.
公用欄位靜態成員 OperCancelJobs Specifies the operation "Cancel Jobs".
公用欄位靜態成員 OperCreateAnySubscription Specifies the operation "Create Any Subscription".
公用欄位靜態成員 OperCreateDatasource Specifies the operation "Create Data Source".
公用欄位靜態成員 OperCreateFolder Specifies the operation "Create Folder".
公用欄位靜態成員 OperCreateLink Specifies the operation "Create Link".
公用欄位靜態成員 OperCreateModel Specifies the operation “Create Model”.
公用欄位靜態成員 OperCreateReport Specifies the operation "Create Report".
公用欄位靜態成員 OperCreateResource Specifies the operation "Create Resource".
公用欄位靜態成員 OperCreateRoles Specifies the operation "Create Roles".
公用欄位靜態成員 OperCreateSchedules Specifies the operation "Create Schedules".
公用欄位靜態成員 OperCreateSnapshot Specifies the operation "Create Report History".
公用欄位靜態成員 OperCreateSubscription Specifies the operation "Create Subscription".
公用欄位靜態成員 OperDelete Specifies the operation "Delete".
公用欄位靜態成員 OperDeleteAnySubscription Specifies the operation "Delete Any Subscription".
公用欄位靜態成員 OperDeleteHistory Specifies the operation "Delete Report History".
公用欄位靜態成員 OperDeleteRoles Specifies the operation "Delete Roles".
公用欄位靜態成員 OperDeleteSchedules Specifies the operation "Delete Schedules".
公用欄位靜態成員 OperDeleteSubscription Specifies the operation "Delete Subscription".
公用欄位靜態成員 OperExecute Specifies the operation "Execute".
公用欄位靜態成員 OperExecuteAndView Specifies the operation "Execute and View".
公用欄位靜態成員 OperGenerateEvents Specifies the operation "Generate Events".
公用欄位靜態成員 OperListHistory Specifies the operation "List Report History".
公用欄位靜態成員 OperListJobs Specifies the operation "List Jobs".
公用欄位靜態成員 OperManageSharedSchedules Specifies the operation "Manage Shared Schedules".
公用欄位靜態成員 OperReadAnySubscription Specifies the operation "Read Any Subscription".
公用欄位靜態成員 OperReadAuthorizationPolicy Specifies the operation "Read Security Policies".
公用欄位靜態成員 OperReadContent Specifies the operation "Read Content".
公用欄位靜態成員 OperReadDatasources Specifies the operation "Read Data Sources".
公用欄位靜態成員 OperReadModelItemSecurityPolicies Specifies the operation “Read Model Item Security Policies”.
公用欄位靜態成員 OperReadParameters Specifies the operation "Read Parameters".
公用欄位靜態成員 OperReadPolicy Specifies the operation "Read Policy".
公用欄位靜態成員 OperReadProperties Specifies the operation "Read Properties".
公用欄位靜態成員 OperReadReportDefinition Specifies the operation "Read Report Definition".
公用欄位靜態成員 OperReadRoleProperties Specifies the operation "Read Role Properties".
公用欄位靜態成員 OperReadSchedules Specifies the operation "Read Schedules".
公用欄位靜態成員 OperReadSubscription Specifies the operation "Read Subscription".
公用欄位靜態成員 OperReadSystemProperties Specifies the operation "Read System Properties".
公用欄位靜態成員 OperReadSystemSecurityPolicy Specifies the operation "Read System Security Policies".
公用欄位靜態成員 OperUpdateAnySubscription Specifies the operation "Update Any Subscription".
公用欄位靜態成員 OperUpdateContent Specifies the operation "Update Content".
公用欄位靜態成員 OperUpdateDatasources Specifies the operation "Update Data Sources".
公用欄位靜態成員 OperUpdateDeleteAuthorizationPolicy Specifies the operation "Update Security Policies".
公用欄位靜態成員 OperUpdateModelItemSecurityPolicies Specifies the operation “Update Model Item Security Policies”.
公用欄位靜態成員 OperUpdateParameters Specifies the operation "Update Parameters".
公用欄位靜態成員 OperUpdatePolicy Specifies the operation "Update Policy".
公用欄位靜態成員 OperUpdateProperties Specifies the operation "Update Properties".
公用欄位靜態成員 OperUpdateReportDefinition Specifies the operation "Update Report Definition".
公用欄位靜態成員 OperUpdateRoleProperties Specifies the operation "Update Role Properties".
公用欄位靜態成員 OperUpdateSchedules Specifies the operation "Update Schedules".
公用欄位靜態成員 OperUpdateSubscription Specifies the operation "Update Subscription".
公用欄位靜態成員 OperUpdateSystemProperties Specifies the operation "Update System Properties".
公用欄位靜態成員 OperUpdateSystemSecurityPolicy Specifies the operation "Update System Security Policies."

上層

備註

The OperationNames class contains fields that represent the constant string values for operation names in Reporting Services. These operation names can be used by your security extension to return a list of permissions for a user of a given item in the report server database. For more information, see the GetPermissions method of the IAuthorizationExtension interface.

You can develop Report Server Web service client applications in such a way as to provide functionality and appearance based on the permissions of the current user. Client applications, such as Report Manager, rely on the Web service method GetPermissions to return a set of permission names that correspond to operations in Reporting Services. When a client makes a call to GetPermissions, the Web service responds with a set of permissions based on the item being accessed and the user making the request. A typical call to the root or Home item in the report server database for a user that is assigned the Browser Role might look like the following:

// C# Web service code
string[] permissions = rs.GetPermissions("/");

foreach (string p in permissions)
{
   Console.WriteLine(p);
}

The above code returns a single permission for Browser users: Read Properties. The user is granted access to view the contents and properties, but not to modify or delete the contents. Nor is the user allowed to update security policies or view data source information. The Browser role is a very restrictive role.

Because clients can call GetPermissions in order to discover what permissions the user has, a client application can be tailored for each user. In Report Manager, Browser users do not have access to the Security Properties or Data Source Properties pages for a report. Nor is a Browser user permitted to see site settings or other administrator information, because Report Manager makes a call to GetPermissions and determines ahead of time which pages and tabs to display. Because of a client application's reliance on named permissions, your security extension must implement the GetPermissions method of the IAuthorizationExtension interface.

To support your implementation of GetPermissions, the security extension API provides you with the OperationNames class, which contains a set of constant fields representing each of the available permissions in Reporting Services. When you implement GetPermissions, you should analyze the security descriptor for the item and the current user and return a list of permissions based on the access control list for the current user.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.ReportingServices.Interfaces 命名空間