共用方式為


AceStruct 類別

An access control entry for a trustee (user, group, or computer) that specifies the operations that a trustee can perform on items in the report server database.

繼承階層

System. . :: . .Object
  Microsoft.ReportingServices.Interfaces..::..AceStruct

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

語法

'宣告
<SerializableAttribute> _
Public Class AceStruct
'用途
Dim instance As AceStruct
[SerializableAttribute]
public class AceStruct
[SerializableAttribute]
public ref class AceStruct
[<SerializableAttribute>]
type AceStruct =  class end
public class AceStruct

AceStruct 型別公開下列成員。

建構函式

  名稱 說明
公用方法 AceStruct(String) Creates a new instance of the AceStruct class with the specified principal name.
公用方法 AceStruct(AceStruct) Creates a new instance of the AceStruct class based on an existing AceStruct object.

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString (繼承自 Object。)

上層

欄位

  名稱 說明
公用欄位 CatalogOperations Represents operations that users can perform on catalog item types. Catalog item types include roles, schedules, system properties, and jobs.
公用欄位 DatasourceOperations Represents operations that users can perform on data source item types.
公用欄位 FolderOperations Represents operations that users can perform on folder item types.
公用欄位 ModelItemOperations
公用欄位 ModelOperations
公用欄位 PrincipalName A user, group, or computer name.
公用欄位 ReportOperations Represents operations that users can perform on report item types.
公用欄位 ResourceOperations Represents operations that users can perform on resource item types.

上層

備註

An AceStruct object contains collections of operations or permissions for an individual user, group or computer. A collection of AceStruct objects constitutes an AceCollection, which functions as the access control list for an item in the report server database.

AceStruct objects are a critical component to the security descriptor that is associated with securable items in the report server database. An AceStruct object is a data structure that contains the name of the principal user and the operations that the user is allowed to perform on a particular item in the report server database. An AceStruct is similar to an access control entry that you might be familiar with from other Microsoft server products, in that it is an element of an access control list (AceCollection object in Reporting Services). When evaluating an AceCollection, you enumerate one or more AceStruct objects as part of the collection. A simple access check using C# might look like the following:

// C#
AceCollection acl = DeserializeAcl(secDesc);
foreach(AceStruct ace in acl)
{
   if (userName == ace.PrincipalName)
   {
      foreach(FolderOperation aclOperation in ace.FolderOperations)
      {
         if (aclOperation == requiredOperation)
         return true;
      }
   }
}

When working with access control entries, you do not specify operations or trustees. This is handled by the report server and the Report Server Web service methods for setting policies and assigning roles. In your security extension, you need only process the access control entries and grant or deny access based on a given set of conditions.

執行緒安全性

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