StoreServicesExperimentVariation.GetBoolean(String, Boolean) Method

Definition

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

public:
 virtual bool GetBoolean(Platform::String ^ name, bool defaultValue) = GetBoolean;
bool GetBoolean(winrt::hstring const & name, bool defaultValue);
public bool GetBoolean(string name, bool defaultValue);
function getBoolean(name, defaultValue)
Public Function GetBoolean (name As String, defaultValue As Boolean) As Boolean

Parameters

name
System.String

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

defaultValue
System.Boolean

The default value for the setting. The GetBoolean 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.Boolean

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

Applies to