DirectoryEntry.UsePropertyCache Propriedade

Definição

Obtém ou define um valor que indica se o cache deve ser confirmado após cada operação.Gets or sets a value indicating whether the cache should be committed after each operation.

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

Valor da propriedade

Boolean

true se o cache não deve ser confirmado após cada operação; caso contrário, false.true if the cache should not be committed after each operation; otherwise, false. O padrão é true.The default is true.

Atributos

Comentários

Por padrão, as alterações nas propriedades são feitas localmente em um cache, e os valores de propriedade a serem lidos são armazenados em cache após a primeira leitura.By default, changes to properties are made locally to a cache, and property values to be read are cached after the first read. Quando a UsePropertyCache propriedade é true , o acesso às DirectoryEntry Propriedades do objeto é mais rápido.When the UsePropertyCache property is true, access to the DirectoryEntry object's properties is faster. Definir isso como fará com false que o cache seja confirmado após cada operação.Setting this to false will cause the cache to be committed after each operation.

Se a UsePropertyCache propriedade for true e você quiser confirmar as alterações em cache, chame o CommitChanges método.If the UsePropertyCache property is true and you want to commit cached changes, call the CommitChanges method. Para atualizar valores no cache após as alterações no diretório serem feitas, chame o RefreshCache método.To update values in the cache after changes to the directory are made, call the RefreshCache method.

Cuidado

Se você chamar RefreshCache antes CommitChanges de chamar, todas as alterações não confirmadas no cache de propriedades serão perdidas.If you call RefreshCache before calling CommitChanges, any uncommitted changes to the property cache will be lost.

Observação

O provedor de Serviços de Informações da Internet (IIS) não dá suporte à confirmação do cache após cada operação.The Internet Information Services (IIS) provider does not support committing the cache after each operation.

Aplica-se a

Confira também