AzureAppConfigurationOptions.Select(String, String) Method

Definition

Specify what key-values to include in the configuration provider. Select(String, String) can be called multiple times to include multiple sets of key-values.

public Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationOptions Select (string keyFilter, string labelFilter = "\0");
member this.Select : string * string -> Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationOptions
Public Function Select (keyFilter As String, Optional labelFilter As String = "\0") As AzureAppConfigurationOptions

Parameters

keyFilter
String

The key filter to apply when querying Azure App Configuration for key-values. An asterisk () can be added to the end to return all key-values whose key begins with the key filter. e.g. key filter abc* returns all key-values whose key starts with abc. A comma (,) can be used to select multiple key-values. Comma separated filters must exactly match a key to select it. Using asterisk to select key-values that begin with a key filter while simultaneously using comma separated key filters is not supported. E.g. the key filter abc*,def is not supported. The key filters abc* and abc,def are supported. For all other cases the characters: asterisk (), comma (,), and backslash () are reserved. Reserved characters must be escaped using a backslash (). e.g. the key filter a\\b\,\*c* returns all key-values whose key starts with a\b,*c. Built-in key filter options: KeyFilter.

labelFilter
String

The label filter to apply when querying Azure App Configuration for key-values. By default the null label will be used. Built-in label filter options: LabelFilter The characters asterisk (*) and comma (,) are not supported. Backslash () character is reserved and must be escaped using another backslash ().

Returns

Applies to