DirectoryEntry.ObjectSecurity DirectoryEntry.ObjectSecurity DirectoryEntry.ObjectSecurity DirectoryEntry.ObjectSecurity Property

定義

取得或設定這個項目的安全性描述元 (Security Descriptor)。Gets or sets the security descriptor for this entry.

public:
 property System::DirectoryServices::ActiveDirectorySecurity ^ ObjectSecurity { System::DirectoryServices::ActiveDirectorySecurity ^ get(); void set(System::DirectoryServices::ActiveDirectorySecurity ^ value); };
[System.ComponentModel.Browsable(false)]
[System.DirectoryServices.DSDescription("DSObjectSecurity")]
public System.DirectoryServices.ActiveDirectorySecurity ObjectSecurity { get; set; }
member this.ObjectSecurity : System.DirectoryServices.ActiveDirectorySecurity with get, set
Public Property ObjectSecurity As ActiveDirectorySecurity

屬性值

ActiveDirectorySecurity 物件,表示這個目錄項目的安全性描述元。An ActiveDirectorySecurity object that represents the security descriptor for this directory entry.

安全性

DirectoryServicesPermission
Demand當應用程式設定ObjectSecurity屬性時, UsePropertyCache如果屬性為false,則會執行。Demand is performed when an application sets the ObjectSecurity property, if the UsePropertyCache property is false.

適用於