Compartilhar via


StoreServicesExperimentVariation.GetInt32(String, Int32) Method

Definition

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

public:
 virtual int GetInt32(Platform::String ^ name, int defaultValue) = GetInt32;
int GetInt32(winrt::hstring const& name, int const& defaultValue);
public int GetInt32(string name, int defaultValue);
function getInt32(name, defaultValue)
Public Function GetInt32 (name As String, defaultValue As Integer) As Integer

Parameters

name
String

Platform::String

winrt::hstring

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

defaultValue
Int32

int

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

Int32

int

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

Applies to