DirectoryEntry.Properties 屬性

定義

取得這個 DirectoryEntry 物件的 Active Directory 網域服務屬性。Gets the Active Directory Domain Services properties for this DirectoryEntry object.

public:
 property System::DirectoryServices::PropertyCollection ^ Properties { System::DirectoryServices::PropertyCollection ^ get(); };
[System.ComponentModel.Browsable(false)]
[System.DirectoryServices.DSDescription("DSProperties")]
public System.DirectoryServices.PropertyCollection Properties { get; }
member this.Properties : System.DirectoryServices.PropertyCollection
Public ReadOnly Property Properties As PropertyCollection

屬性值

PropertyCollection 物件,包含在這個項目上設定的屬性。A PropertyCollection object that contains the properties that are set on this entry.

屬性

備註

如果屬性未初始化, Properties會呼叫 ADSI 介面iad:: Get方法來抓取快取中的值。If the property is not initialized, Properties calls the ADSI interface IADs::Get method to retrieve the value from the cache. 如果尚未載入基礎快取, iad:: Get會隱含地呼叫Iad:: GetInfoIf the underling cache has not been loaded, IADs::Get implicitly calls IADs::GetInfo. 這個方法會從基礎目錄存放區載入快取中尚未設定之支援屬性的值。This method loads the values of the supported properties that have not been set in the cache from the underlying directory store. 後續呼叫Properties只會抓取快取中的屬性值。Subsequent calls to Properties retrieves the property values in the cache only. 若要控制屬性快取載入RefreshCache,請呼叫。To control property cache loading, call RefreshCache.

注意屬性不支援與的 Active Directory 用戶端擴充功能(DSClient Windows NT 4.0Windows NT 4.0)搭配使用。 PropertiesNote The Properties property is not supported for use with the Active Directory Client Extension (DSClient) for Windows NT 4.0Windows NT 4.0.

安全性

DirectoryServicesPermission
取得屬性。To retrieve the properties.

適用於

另請參閱