ObjectSecurity 類別

定義

提供在不直接操作存取控制清單(ACL)的情況下控制物件存取的能力。 此類別是 和 CommonObjectSecurity 類別的DirectoryObjectSecurity抽象基底類別。

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

建構函式

名稱 Description
ObjectSecurity()

初始化 ObjectSecurity 類別的新執行個體。

ObjectSecurity(Boolean, Boolean)

初始化 ObjectSecurity 類別的新執行個體。

ObjectSecurity(CommonSecurityDescriptor)

初始化 ObjectSecurity 類別的新執行個體。

屬性

名稱 Description
AccessRightType

取得與該Type物件相關聯的可保障物件。ObjectSecurity

AccessRulesModified

取得或設定一個布林值,指定與此 ObjectSecurity 物件相關的存取規則是否被修改。

AccessRuleType

取得 Type 與該 ObjectSecurity 物件存取規則相關聯的物件。 該 Type 物件必須是可以被施放為 SecurityIdentifier 物件的物件。

AreAccessRulesCanonical

會得到一個布林值,指定與此 ObjectSecurity 物件相關的存取規則是否為典範順序。

AreAccessRulesProtected

會獲得一個布林值,指定與此 ObjectSecurity 物件相關的自由裁量存取控制清單(DACL)是否受到保護。

AreAuditRulesCanonical

會獲得一個布林值,指定與此 ObjectSecurity 物件相關的稽核規則是否為典範順序。

AreAuditRulesProtected

會獲得一個布林值,指定與此 ObjectSecurity 物件相關的系統存取控制清單(SACL)是否受到保護。

AuditRulesModified

取得或設定一個布林值,指定該 ObjectSecurity 物件相關的稽核規則是否被修改。

AuditRuleType

取得 Type 與該 ObjectSecurity 物件稽核規則相關聯的物件。 該 Type 物件必須是可以被施放為 SecurityIdentifier 物件的物件。

GroupModified

取得或設定一個布林值,指定與可安全物件相關聯的群組是否已被修改。

IsContainer

會得到一個布林值,用來指定這個 ObjectSecurity 物件是否是容器物件。

IsDS

會得到一個布林值,指定該 ObjectSecurity 物件是否為目錄物件。

OwnerModified

取得或設定一個布林值,指定可保護物件的擁有者是否被修改。

SecurityDescriptor

取得此實例的安全描述符。

方法

名稱 Description
AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)

初始化一個新的類別實例 AccessRule ,並以指定值。

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

初始化一個新的類別實例 AuditRule ,並以指定值。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetGroup(Type)

取得與指定擁有者關聯的主要群組。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetOwner(Type)

會讓擁有者與指定的主要群組關聯。

GetSecurityDescriptorBinaryForm()

回傳一個代表此 ObjectSecurity 物件安全描述符資訊的位元組數陣列。

GetSecurityDescriptorSddlForm(AccessControlSections)

回傳與此 ObjectSecurity 物件相關安全描述符指定區段的安全描述符定義語言(SDDL)表示。

GetType()

取得目前實例的 Type

(繼承來源 Object)
IsSddlConversionSupported()

回傳一個布林值,指定該物件所關聯 ObjectSecurity 的安全描述符是否能轉換為安全描述符定義語言(SDDL)格式。

MemberwiseClone()

建立目前 Object的淺層複本。

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

將指定的修改套用於與此 ObjectSecurity 物件相關的自由裁量存取控制清單(DACL)。

ModifyAccessRule(AccessControlModification, AccessRule, Boolean)

將指定的修改套用於與此 ObjectSecurity 物件相關的自由裁量存取控制清單(DACL)。

ModifyAudit(AccessControlModification, AuditRule, Boolean)

將指定的修改套用到與此 ObjectSecurity 物件相關的系統存取控制清單(SACL)。

ModifyAuditRule(AccessControlModification, AuditRule, Boolean)

將指定的修改套用到與此 ObjectSecurity 物件相關的系統存取控制清單(SACL)。

Persist(Boolean, String, AccessControlSections)

將與此 ObjectSecurity 物件相關的安全描述符指定區段儲存為永久儲存。 我們建議傳給建構子與持久化方法的參數值 includeSections 應相同。

Persist(SafeHandle, AccessControlSections)

將與此 ObjectSecurity 物件相關的安全描述符指定區段儲存為永久儲存。 我們建議傳給建構子與持久化方法的參數值 includeSections 應相同。

Persist(String, AccessControlSections)

將與此 ObjectSecurity 物件相關的安全描述符指定區段儲存為永久儲存。 我們建議傳給建構子與持久化方法的參數值 includeSections 應相同。

PurgeAccessRules(IdentityReference)

移除所有與指定 IdentityReference

PurgeAuditRules(IdentityReference)

移除所有與指定 IdentityReference. 相關的稽核規則。

ReadLock()

鎖定此 ObjectSecurity 物件以禁止讀取。

ReadUnlock()

解鎖此 ObjectSecurity 物件以進行讀取存取。

SetAccessRuleProtection(Boolean, Boolean)

設定或移除與此 ObjectSecurity 物件相關的存取規則保護。 受保護的存取規則不能透過繼承被父物件修改。

SetAuditRuleProtection(Boolean, Boolean)

設定或移除與此 ObjectSecurity 物件相關的稽核規則保護。 受保護的稽核規則不能被父物件透過繼承來修改。

SetGroup(IdentityReference)

設定與此 ObjectSecurity 物件相關的安全描述符的主要群組。

SetOwner(IdentityReference)

設定與此 ObjectSecurity 物件相關聯的安全描述符擁有者。

SetSecurityDescriptorBinaryForm(Byte[], AccessControlSections)

從指定的位元組數陣列中設定該 ObjectSecurity 物件安全描述符的指定區段。

SetSecurityDescriptorBinaryForm(Byte[])

從指定的位元組數陣列中設定此 ObjectSecurity 物件的安全描述符。

SetSecurityDescriptorSddlForm(String, AccessControlSections)

從指定的安全描述符定義語言(SDDL)字串中,設定該 ObjectSecurity 物件安全描述符的指定區段。

SetSecurityDescriptorSddlForm(String)

從指定的安全描述符定義語言(SDDL)字串中設定此 ObjectSecurity 物件的安全描述符。

ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)
WriteLock()

鎖定這個 ObjectSecurity 物件以進行寫入存取。

WriteUnlock()

解鎖這個 ObjectSecurity 物件以進行寫入存取。

適用於