Compartilhar via


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
String

Platform::String

winrt::hstring

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

defaultValue
String

Platform::String

winrt::hstring

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

String

Platform::String

winrt::hstring

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

Applies to