StoreServicesExperimentVariation.IsStale | isStale property
Indicates whether the current variation assignment needs to be refreshed from the server.
Syntax
public: property bool IsStale { bool get(); }
Property value
Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]
true if the current variation assignment needs to be refreshed from the server; otherwise, false.
Remarks
When you retrieve an experiment variation in your app, we recommend that you first call GetCachedVariationAsync to get the locally cached variation assignment. Before using the variation assignment, use the IsStale property to determine whether there is an updated variation assignment available from the server. If there is, then call the GetRefreshedVariationAsync method to get the latest variation assignment.
For a code example that demonstrates how to use this method, see Code your experiment in your app.
Requirements
|
Minimum supported client |
Windows 10 |
|---|---|
|
Minimum supported server |
None supported |
|
Minimum supported phone |
Windows 10 Mobile |
|
Namespace |
|
|
Metadata |
|
See also