다음을 통해 공유


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) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.