次の方法で共有


StoreServicesExperimentVariation.IsStale Property

Definition

Indicates whether the current variation assignment needs to be refreshed from the server.

public:
 property bool IsStale { bool get(); };
bool IsStale();
public bool IsStale { get; }
var boolean = storeServicesExperimentVariation.isStale;
Public ReadOnly Property IsStale As Boolean

Property Value

Boolean

bool

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.

Applies to

See also