Udostępnij za pośrednictwem


ServiceClient.ForceServerMetadataCacheConsistency Property

Definition

This will force the Dataverse server to refresh the current metadata cache with current DB config. Note, that this is a performance impacting property. Use of this flag will slow down operations server side as the server is required to check for consistency of the platform metadata against disk on each API call executed. It is recommended to use this ONLY in conjunction with solution import or delete operations.

public bool ForceServerMetadataCacheConsistency { get; set; }
member this.ForceServerMetadataCacheConsistency : bool with get, set
Public Property ForceServerMetadataCacheConsistency As Boolean

Property Value

Remarks

Set this property when you must have the most recent version of a cached item. Cached items include: Metadata definitions, Labels, and permissions. For example, if you apply a change to some metadata definition, label, or permission and you have code that must use the latest definition within 30 seconds of the change, you can use this property to ensure you get the latest version. This incurs a performance penalty so it shouldn't be used all the time.

Applies to