AccessRule 類別

定義

表示使用者的識別 (Identity)、存取遮罩和存取控制 (Access Control) 型別 (允許或拒絕) 的組合。Represents a combination of a user's identity, an access mask, and an access control type (allow or deny). AccessRule 物件還包含子物件如何繼承規則,以及如何傳用該繼承的相關資訊。An AccessRule object also contains information about the how the rule is inherited by child objects and how that inheritance is propagated.

public ref class AccessRule abstract : System::Security::AccessControl::AuthorizationRule
public abstract class AccessRule : System.Security.AccessControl.AuthorizationRule
type AccessRule = class
    inherit AuthorizationRule
Public MustInherit Class AccessRule
Inherits AuthorizationRule
繼承
衍生

建構函式

AccessRule(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)

使用指定的值,初始化 AccessRule 類別的新執行個體。Initializes a new instance of the AccessRule class by using the specified values.

屬性

AccessControlType

取得與這個 AccessControlType 物件相關聯的 AccessRule 值。Gets the AccessControlType value associated with this AccessRule object.

AccessMask

取得此規則的存取遮罩。Gets the access mask for this rule.

(繼承來源 AuthorizationRule)
IdentityReference

取得要套用此規則的 IdentityReferenceGets the IdentityReference to which this rule applies.

(繼承來源 AuthorizationRule)
InheritanceFlags

取得旗標值,這個值會決定子物件繼承這項規則的方式。Gets the value of flags that determine how this rule is inherited by child objects.

(繼承來源 AuthorizationRule)
IsInherited

取得值,表示這個規則是否會明確地設定或繼承自父容器物件。Gets a value indicating whether this rule is explicitly set or is inherited from a parent container object.

(繼承來源 AuthorizationRule)
PropagationFlags

取得傳播旗標的值,該值判斷這個規則的繼承如何傳播到子物件。Gets the value of the propagation flags, which determine how inheritance of this rule is propagated to child objects. 只有當 InheritanceFlags 列舉的值不是 None,這個屬性才是重要的。This property is significant only when the value of the InheritanceFlags enumeration is not None.

(繼承來源 AuthorizationRule)

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

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

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
MemberwiseClone()

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

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於