AccessControlEntry AccessControlEntry AccessControlEntry AccessControlEntry Class

定義

指定信任項 (Trustee) (使用者、群組或電腦) 的存取權限,以執行應用程式專有的一般性工作實作。Specifies access rights for a trustee (user, group, or computer) to perform application-specific implementations of common tasks.

public ref class AccessControlEntry
public class AccessControlEntry
type AccessControlEntry = class
Public Class AccessControlEntry
繼承
AccessControlEntryAccessControlEntryAccessControlEntryAccessControlEntry
衍生

備註

許多應用程式都有類似的作業, 可以將許可權指派給信任者, 例如讀取、寫入和刪除物件。Many applications have similar operations to which a trustee can be assigned rights, for example, reading, writing, and deleting objects. 當您指派這些一般作業的許可權時, 應用程式會以該應用程式特定的方式來加以解讀。When you assign rights for these general operations, the application interprets them in a way specific to that application. 例如, 訊息佇列會將讀取作業解讀為接收或查看佇列中的訊息。For example, Message Queuing interprets the reading operation as receiving or peeking messages from a queue. 類別AccessControlEntry提供這些一般許可權的存取權。The AccessControlEntry class provides access to these common rights.

使用存取控制專案時, 您可以指定要指派許可權的信任者。When working with access control entries, you specify a trustee to which you are assigning the rights. 您必須至少設定其中一個GenericAccessRightsStandardAccessRightsCustomAccessRights屬性, 以指出要指派給信任者的許可權。You must set at least one of the GenericAccessRights, StandardAccessRights, or CustomAccessRights properties to indicate which rights to assign to the trustee. 您可以設定EntryType屬性, 以指定是否應授與或拒絕您所指定的許可權。You can set the EntryType property to specify whether the rights you indicate should be granted or denied. 預設專案類型為 [允許許可權]。The default entry type is to allow rights.

建構函式

AccessControlEntry() AccessControlEntry() AccessControlEntry() AccessControlEntry()

初始化 AccessControlEntry 類別的新執行個體,以指定未套用任何的信任項或權限集合。Initializes a new instance of the AccessControlEntry class that specifies neither a trustee nor set of rights to apply.

AccessControlEntry(Trustee) AccessControlEntry(Trustee) AccessControlEntry(Trustee) AccessControlEntry(Trustee)

初始化 AccessControlEntry 類別的新執行個體,指定要授與或拒絕權限的信任項。Initializes a new instance of the AccessControlEntry class that specifies a trustee to which rights are granted or denied.

AccessControlEntry(Trustee, GenericAccessRights, StandardAccessRights, AccessControlEntryType) AccessControlEntry(Trustee, GenericAccessRights, StandardAccessRights, AccessControlEntryType) AccessControlEntry(Trustee, GenericAccessRights, StandardAccessRights, AccessControlEntryType) AccessControlEntry(Trustee, GenericAccessRights, StandardAccessRights, AccessControlEntryType)

初始化 AccessControlEntry 類別的新執行個體,以指定信任項、要指派的權限以及是否授與或拒絕這些權限。Initializes a new instance of the AccessControlEntry class that specifies a trustee, rights to assign, and whether to grant or deny these rights.

屬性

CustomAccessRights CustomAccessRights CustomAccessRights CustomAccessRights

取得或設定自訂存取權限。Gets or sets custom access rights.

EntryType EntryType EntryType EntryType

取得或設定值,指出套用存取權限至信任項的情形。Gets or sets a value that indicates how the access rights apply to the trustee.

GenericAccessRights GenericAccessRights GenericAccessRights GenericAccessRights

取得或設定同時對應至標準和物件專用的讀取、寫入和執行存取權限的一般存取權限集合。Gets or sets a set of common access rights that map to both standard and object-specific access rights for reading, writing, and executing.

StandardAccessRights StandardAccessRights StandardAccessRights StandardAccessRights

取得或設定對應至大部分安全物件類型作業的標準存取權限。Gets or sets a set of standard access rights that correspond to operations common to most types of securable objects.

Trustee Trustee Trustee Trustee

取得或設定您要指派存取權限的使用者、群組、電腦、網域或別名。Gets or sets the user, group, domain, or alias to which you are assigning access rights.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於

另請參閱