共用方式為


StoreServicesExperimentVariation.GetRefreshedVariationAsync(String) 方法

定義

從伺服器擷取實驗的最新變化指派。

public:
 static IAsyncOperation<StoreServicesExperimentVariationResult ^> ^ GetRefreshedVariationAsync(Platform::String ^ experimentProjectId);
 static IAsyncOperation<StoreServicesExperimentVariationResult> GetRefreshedVariationAsync(winrt::hstring const & experimentProjectId);
public static IAsyncOperation<StoreServicesExperimentVariationResult> GetRefreshedVariationAsync(string experimentProjectId);
function getRefreshedVariationAsync(experimentProjectId)
Public Shared Function GetRefreshedVariationAsync (experimentProjectId As String) As IAsyncOperation(Of StoreServicesExperimentVariationResult)

參數

experimentProjectId
System.String

您要從伺服器擷取最新變化指派的實驗專案識別碼。

傳回

StoreServicesExperimentVariationResult,代表非同步作業的結果。 此物件提供最新變化指派的存取權。

備註

這個方法會從伺服器擷取與指定專案識別碼相關聯之實驗的最新變化指派。

當您在應用程式中擷取實驗變化時,建議您先呼叫 GetCachedVariationAsync ,以取得本機快取的變化指派。 使用變化指派之前,請使用 IsStale 屬性來判斷伺服器是否有可用的更新變化指派。 如果有的話,請呼叫 GetRefreshedVariationAsync 方法來取得最新的變化指派。

如需示範如何使用此方法的程式碼範例,請參閱 在應用程式中撰寫實驗的程式碼

適用於

另請參閱