StoreServicesExperimentVariation.GetDouble(String, Double) Method

Definition

Returns a variation value for the specified Double setting for an A/B experiment that you have configured in Partner Center.

public:
 virtual double GetDouble(Platform::String ^ name, double defaultValue) = GetDouble;
double GetDouble(winrt::hstring const & name, double defaultValue);
public double GetDouble(string name, double defaultValue);
function getDouble(name, defaultValue)
Public Function GetDouble (name As String, defaultValue As Double) As Double

Parameters

name
System.String

The name of the Double setting value that you want to retrieve.

defaultValue
System.Double

The default value for the setting. The GetDouble method returns this default value if it is not able to retrieve the specified value from Partner Center (for example, if there is no network connectivity), and a cached version of the variation is not available.

Returns

System.Double

A variation value for the setting specified by the name parameter.

Applies to