次の方法で共有


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 const& 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
String

Platform::String

winrt::hstring

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

defaultValue
Boolean

bool

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

Boolean

bool

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

Applies to