ResourceContext.SetGlobalQualifierValue Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
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
Platform::String
winrt::hstring
The name of the qualifier to override.
- value
-
String
Platform::String
winrt::hstring
The override value to set.
- Attributes
Remarks
This method fails with an exception if key or value are invalid.
See also
Applies to
WinRT Build 26100 and other versions
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |
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
Platform::String
winrt::hstring
The name of the qualifier to override.
- value
-
String
Platform::String
winrt::hstring
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
WinRT Build 26100 and other versions
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |