StoreServicesExperimentVariation class
Represents a variation for an A/B experiment that you have configured in the Windows Dev Center dashboard.
Syntax
public ref class StoreServicesExperimentVariation sealed
Members
The StoreServicesExperimentVariation class has these types of members:
Methods
The StoreServicesExperimentVariation class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
| Method | Description |
|---|---|
| GetBoolean |
Returns a variation value for the specified Boolean setting for an A/B experiment that you have configured in the Windows Dev Center dashboard. |
| GetCachedVariationAsync |
Retrieves the current locally cached variation assignment for the specified experiment. |
| GetDouble |
Returns a variation value for the specified Double setting for an A/B experiment that you have configured in the Windows Dev Center dashboard. |
| GetInt32 |
Returns a variation value for the specified Int32 setting for an A/B experiment that you have configured in the Windows Dev Center dashboard. |
| GetRefreshedVariationAsync |
Retrieves the latest variation assignment for the experiment from the server. |
| GetString |
Returns a variation value for the specified String setting for an A/B experiment that you have configured in the Windows Dev Center dashboard. |
Properties
The StoreServicesExperimentVariation class has these properties.
| Property | Access type | Description |
|---|---|---|
|
Read-only |
Gets the ID of the experiment that is associated with this variation. | |
|
Read-only |
Gets the name of the experiment that is associated with this variation. | |
|
Read-only |
Gets the unique project ID of the experiment that is associated with this variation. | |
|
Read-only |
Indicates whether the current variation assignment needs to be refreshed from the server. | |
|
Read-only |
Gets the ID of the experiment variation that has been served to the app. |
Remarks
To retrieve an experiment variation in your app, use the GetCachedVariationAsync or GetRefreshedVariationAsync method to retrieve a StoreServicesExperimentVariationResult, and then use the ExperimentVariation property of this object to get a StoreServicesExperimentVariation that represents a variation. Use the properties and methods of this object to access the variation settings that you defined in the Windows Dev Center dashboard.
For a code example that demonstrates how to use this class, see Code your experiment in your app. This class is available in the Microsoft Store Services SDK.
Requirements
|
Minimum supported client |
Windows 10 [Windows Store apps only] |
|---|---|
|
Minimum supported server |
None supported |
|
Minimum supported phone |
Windows 10 Mobile |
|
Namespace |
|
|
Metadata |
|
Attributes
- [MarshalingBehavior(Agile)]
- [Threading(Both)]
- [Version]
See also