Share via


DirectoryEntry.UsePropertyCache 속성

정의

각 작업이 끝난 후 캐시를 커밋할 것인지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool UsePropertyCache { bool get(); void set(bool value); };
public bool UsePropertyCache { get; set; }
[System.DirectoryServices.DSDescription("DSUsePropertyCache")]
public bool UsePropertyCache { get; set; }
member this.UsePropertyCache : bool with get, set
[<System.DirectoryServices.DSDescription("DSUsePropertyCache")>]
member this.UsePropertyCache : bool with get, set
Public Property UsePropertyCache As Boolean

속성 값

각 작업이 끝난 후 캐시를 커밋하려면 true이고, 그렇지 않으면 false입니다. 기본값은 true입니다.

특성

설명

기본적으로 속성에 대한 변경 내용은 캐시에 로컬로 적용되며 읽을 속성 값은 첫 번째 읽기 후에 캐시됩니다. 속성이 이 UsePropertyCachetrue개체의 속성에 DirectoryEntry 더 빠르게 액세스할 수 있습니다. 이 값을 로 false 설정하면 각 작업 후에 캐시가 커밋됩니다.

속성이 UsePropertyCachetrue 고 캐시된 변경 내용을 커밋하려는 경우 메서드를 호출합니다 CommitChanges . 디렉터리를 변경한 후 캐시의 값을 업데이트하려면 메서드를 호출합니다 RefreshCache .

주의

를 호출하기 전에 를 호출 RefreshCacheCommitChanges하면 속성 캐시에 대한 커밋되지 않은 변경 내용이 손실됩니다.

참고

IIS(인터넷 정보 서비스) 공급자는 각 작업 후에 캐시 커밋을 지원하지 않습니다.

적용 대상

추가 정보