ObjectSecurity 類別

定義

提供控制物件存取權的能力,而不需直接管理存取控制清單 (ACL) 。Provides the ability to control access to objects without direct manipulation of Access Control Lists (ACLs). 這個類別是 CommonObjectSecurityDirectoryObjectSecurity 類別的抽象基底類別。This class is the abstract base class for the CommonObjectSecurity and DirectoryObjectSecurity classes.

public ref class ObjectSecurity abstract
public abstract class ObjectSecurity
type ObjectSecurity = class
Public MustInherit Class ObjectSecurity
繼承
ObjectSecurity
衍生

建構函式

ObjectSecurity()

初始化 ObjectSecurity 類別的新執行個體。Initializes a new instance of the ObjectSecurity class.

ObjectSecurity(Boolean, Boolean)

初始化 ObjectSecurity 類別的新執行個體。Initializes a new instance of the ObjectSecurity class.

ObjectSecurity(CommonSecurityDescriptor)

初始化 ObjectSecurity 類別的新執行個體。Initializes a new instance of the ObjectSecurity class.

屬性

AccessRightType

取得與這個 ObjectSecurity 物件相關聯之安全物件的 TypeGets the Type of the securable object associated with this ObjectSecurity object.

AccessRulesModified

取得或設定布林值,指定是否已修改與這個 ObjectSecurity 物件關聯的存取規則。Gets or sets a Boolean value that specifies whether the access rules associated with this ObjectSecurity object have been modified.

AccessRuleType

取得與此 ObjectSecurity 物件之存取規則相關聯的 Type 物件。Gets the Type of the object associated with the access rules of this ObjectSecurity object. Type 物件必須可以轉換成 SecurityIdentifier 物件。The Type object must be an object that can be cast as a SecurityIdentifier object.

AreAccessRulesCanonical

取得布林值,指定與這個 ObjectSecurity 物件相關聯的存取規則是否為標準順序。Gets a Boolean value that specifies whether the access rules associated with this ObjectSecurity object are in canonical order.

AreAccessRulesProtected

取得布林值,指定是否保護與這個 ObjectSecurity 物件相關聯的判別存取控制清單 (DACL)。Gets a Boolean value that specifies whether the Discretionary Access Control List (DACL) associated with this ObjectSecurity object is protected.

AreAuditRulesCanonical

取得布林值,指定與 ObjectSecurity 物件相關聯的稽核規則是否為標準順序。Gets a Boolean value that specifies whether the audit rules associated with this ObjectSecurity object are in canonical order.

AreAuditRulesProtected

取得布林值,指定是否保護與這個 ObjectSecurity 物件相關聯的系統存取控制清單 (SACL)。Gets a Boolean value that specifies whether the System Access Control List (SACL) associated with this ObjectSecurity object is protected.

AuditRulesModified

取得或設定布林值,指定是否已修改與這個 ObjectSecurity 物件關聯的稽核規則。Gets or sets a Boolean value that specifies whether the audit rules associated with this ObjectSecurity object have been modified.

AuditRuleType

取得與這個 Type 物件之稽核規則相關聯的 ObjectSecurity 物件。Gets the Type object associated with the audit rules of this ObjectSecurity object. Type 物件必須可以轉換成 SecurityIdentifier 物件。The Type object must be an object that can be cast as a SecurityIdentifier object.

GroupModified

取得或設定布林值,指定是否已修改與安全物件關聯的群組。Gets or sets a Boolean value that specifies whether the group associated with the securable object has been modified.

IsContainer

取得可指定這個 ObjectSecurity 物件是否為容器物件的布林值。Gets a Boolean value that specifies whether this ObjectSecurity object is a container object.

IsDS

取得可指定這個 ObjectSecurity 物件是否為目錄物件的布林值。Gets a Boolean value that specifies whether this ObjectSecurity object is a directory object.

OwnerModified

取得或設定布林值,指定是否已修改安全物件的擁有者。Gets or sets a Boolean value that specifies whether the owner of the securable object has been modified.

SecurityDescriptor

取得此執行個體的安全性描述元。Gets the security descriptor for this instance.

方法

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

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

AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags)

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

Equals(Object)

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

(繼承來源 Object)
GetGroup(Type)

取得與指定擁有者相關聯的主要群組。Gets the primary group associated with the specified owner.

GetHashCode()

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

(繼承來源 Object)
GetOwner(Type)

取得與指定的主要群組關聯的擁有者。Gets the owner associated with the specified primary group.

GetSecurityDescriptorBinaryForm()

傳回表示此 ObjectSecurity 物件之安全性描述元資訊的位元組值陣列。Returns an array of byte values that represents the security descriptor information for this ObjectSecurity object.

GetSecurityDescriptorSddlForm(AccessControlSections)

傳回與這個 ObjectSecurity 物件相關聯的安全性描述元指定區段的安全性描述元定義語言 (SDDL) 表示法。Returns the Security Descriptor Definition Language (SDDL) representation of the specified sections of the security descriptor associated with this ObjectSecurity object.

GetType()

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

(繼承來源 Object)
IsSddlConversionSupported()

傳回布林值,指定與這個 ObjectSecurity 物件相關聯的安全性描述元是否可以轉換為安全性描述元定義語言 (SDDL) 格式。Returns a Boolean value that specifies whether the security descriptor associated with this ObjectSecurity object can be converted to the Security Descriptor Definition Language (SDDL) format.

MemberwiseClone()

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

(繼承來源 Object)
ModifyAccess(AccessControlModification, AccessRule, Boolean)

將指定的修改套用至與這個 ObjectSecurity 物件關聯的判別存取控制清單 (DACL)。Applies the specified modification to the Discretionary Access Control List (DACL) associated with this ObjectSecurity object.

ModifyAccessRule(AccessControlModification, AccessRule, Boolean)

將指定的修改套用至與這個 ObjectSecurity 物件關聯的判別存取控制清單 (DACL)。Applies the specified modification to the Discretionary Access Control List (DACL) associated with this ObjectSecurity object.

ModifyAudit(AccessControlModification, AuditRule, Boolean)

將指定的修改套用至與這個 ObjectSecurity 物件關聯的系統存取控制清單 (SACL)。Applies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object.

ModifyAuditRule(AccessControlModification, AuditRule, Boolean)

將指定的修改套用至與這個 ObjectSecurity 物件關聯的系統存取控制清單 (SACL)。Applies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object.

Persist(Boolean, String, AccessControlSections)

將與這個 ObjectSecurity 物件相關聯之安全性描述元的指定區段儲存到永久儲存區。Saves the specified sections of the security descriptor associated with this ObjectSecurity object to permanent storage. 建議傳遞至建構函式和保存方法之 includeSections 參數的值應完全相同。We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical.

Persist(SafeHandle, AccessControlSections)

將與這個 ObjectSecurity 物件相關聯之安全性描述元的指定區段儲存到永久儲存區。Saves the specified sections of the security descriptor associated with this ObjectSecurity object to permanent storage. 建議傳遞至建構函式和保存方法之 includeSections 參數的值應完全相同。We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical.

Persist(String, AccessControlSections)

將與這個 ObjectSecurity 物件相關聯之安全性描述元的指定區段儲存到永久儲存區。Saves the specified sections of the security descriptor associated with this ObjectSecurity object to permanent storage. 建議傳遞至建構函式和保存方法之 includeSections 參數的值應完全相同。We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical.

PurgeAccessRules(IdentityReference)

移除與指定之 IdentityReference 相關聯的所有存取規則。Removes all access rules associated with the specified IdentityReference.

PurgeAuditRules(IdentityReference)

移除與指定之 IdentityReference 相關聯的所有稽核規則。Removes all audit rules associated with the specified IdentityReference.

ReadLock()

鎖定這個 ObjectSecurity 物件的讀取權限。Locks this ObjectSecurity object for read access.

ReadUnlock()

解除鎖定這個 ObjectSecurity 物件的讀取權限。Unlocks this ObjectSecurity object for read access.

SetAccessRuleProtection(Boolean, Boolean)

設定或移除與 ObjectSecurity 物件相關聯的存取規則保護。Sets or removes protection of the access rules associated with this ObjectSecurity object. 受保護的存取規則無法透過繼承來由父物件所修改。Protected access rules cannot be modified by parent objects through inheritance.

SetAuditRuleProtection(Boolean, Boolean)

設定或移除與 ObjectSecurity 物件相關聯的稽核規則保護。Sets or removes protection of the audit rules associated with this ObjectSecurity object. 受保護的稽核規則無法透過繼承來由父物件所修改。Protected audit rules cannot be modified by parent objects through inheritance.

SetGroup(IdentityReference)

設定與 ObjectSecurity 物件相關聯的安全性描述元主要群組。Sets the primary group for the security descriptor associated with this ObjectSecurity object.

SetOwner(IdentityReference)

設定與 ObjectSecurity 物件相關聯的安全性描述元擁有者。Sets the owner for the security descriptor associated with this ObjectSecurity object.

SetSecurityDescriptorBinaryForm(Byte[])

從指定的位元組值陣列,設定這個 ObjectSecurity 物件的安全性描述元。Sets the security descriptor for this ObjectSecurity object from the specified array of byte values.

SetSecurityDescriptorBinaryForm(Byte[], AccessControlSections)

從指定的位元組值陣列,設定這個 ObjectSecurity 物件之安全性描述元的指定區段。Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified array of byte values.

SetSecurityDescriptorSddlForm(String)

從指定的安全性描述元定義語言 (SDDL) 字串,設定這個 ObjectSecurity 物件的安全性描述元。Sets the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string.

SetSecurityDescriptorSddlForm(String, AccessControlSections)

從指定的安全性描述元定義語言 (SDDL) 字串,設定這個 ObjectSecurity 物件的安全性描述元之指定區段。Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string.

ToString()

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

(繼承來源 Object)
WriteLock()

鎖定這個 ObjectSecurity 物件的寫入權限。Locks this ObjectSecurity object for write access.

WriteUnlock()

解除鎖定這個 ObjectSecurity 物件的寫入權限。Unlocks this ObjectSecurity object for write access.

適用於