StoreServicesExperimentVariation.GetString(String, String) Method

Definition

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

public:
 virtual Platform::String ^ GetString(Platform::String ^ name, Platform::String ^ defaultValue) = GetString;
winrt::hstring GetString(winrt::hstring const & name, winrt::hstring const & defaultValue);
public string GetString(string name, string defaultValue);
function getString(name, defaultValue)
Public Function GetString (name As String, defaultValue As String) As String

Parameters

name
System.String

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

defaultValue
System.String

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

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

Applies to