ResourceContext.SetGlobalQualifierValue Method

Definition

Overloads

SetGlobalQualifierValue(String, String)

Applies a single qualifier value override to default contexts of all views for the current app.

SetGlobalQualifierValue(String, String, ResourceQualifierPersistence)

Applies a single qualifier value override to default contexts of all views for the current app, and specifies the persistence of the override.

SetGlobalQualifierValue(String, String)

Applies a single qualifier value override to default contexts of all views for the current app.

public:
 static void SetGlobalQualifierValue(Platform::String ^ key, Platform::String ^ value);
/// [Windows.Foundation.Metadata.Overload("SetGlobalQualifierValue")]
 static void SetGlobalQualifierValue(winrt::hstring const& key, winrt::hstring const& value);
[Windows.Foundation.Metadata.Overload("SetGlobalQualifierValue")]
public static void SetGlobalQualifierValue(string key, string value);
function setGlobalQualifierValue(key, value)
Public Shared Sub SetGlobalQualifierValue (key As String, value As String)

Parameters

key
String

The name of the qualifier to override.

value
String

The override value to set.

Attributes

Remarks

This method fails with an exception if key or value are invalid.

See also

Applies to

SetGlobalQualifierValue(String, String, ResourceQualifierPersistence)

Applies a single qualifier value override to default contexts of all views for the current app, and specifies the persistence of the override.

public:
 static void SetGlobalQualifierValue(Platform::String ^ key, Platform::String ^ value, ResourceQualifierPersistence persistence);
/// [Windows.Foundation.Metadata.Overload("SetGlobalQualifierValueWithPersistence")]
 static void SetGlobalQualifierValue(winrt::hstring const& key, winrt::hstring const& value, ResourceQualifierPersistence const& persistence);
[Windows.Foundation.Metadata.Overload("SetGlobalQualifierValueWithPersistence")]
public static void SetGlobalQualifierValue(string key, string value, ResourceQualifierPersistence persistence);
function setGlobalQualifierValue(key, value, persistence)
Public Shared Sub SetGlobalQualifierValue (key As String, value As String, persistence As ResourceQualifierPersistence)

Parameters

key
String

The name of the qualifier to override.

value
String

The override value to set.

persistence
ResourceQualifierPersistence

The persistence of the override value.

Attributes

Remarks

This method fails with an exception if key or value are invalid.

See also

Applies to