你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AzureAppConfigurationRefreshOptions.Register 方法

定义

重载

Register(String, Boolean)

注册在配置提供程序的 触发刷新时要刷新的 IConfigurationRefresher 指定键值。 IConfigurationRefresher可以通过调用 GetRefresher()获取实例。

Register(String, String, Boolean)

注册在配置提供程序的 触发刷新时要刷新的 IConfigurationRefresher 指定键值。 IConfigurationRefresher可以通过调用 GetRefresher()获取实例。

Register(String, Boolean)

注册在配置提供程序的 触发刷新时要刷新的 IConfigurationRefresher 指定键值。 IConfigurationRefresher可以通过调用 GetRefresher()获取实例。

public Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationRefreshOptions Register (string key, bool refreshAll);
member this.Register : string * bool -> Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationRefreshOptions
Public Function Register (key As String, refreshAll As Boolean) As AzureAppConfigurationRefreshOptions

参数

key
String

键值键。

refreshAll
Boolean

如果为 true,则此键的值更改将刷新配置提供程序使用的所有键值。

返回

适用于

Register(String, String, Boolean)

注册在配置提供程序的 触发刷新时要刷新的 IConfigurationRefresher 指定键值。 IConfigurationRefresher可以通过调用 GetRefresher()获取实例。

public Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationRefreshOptions Register (string key, string label = "\0", bool refreshAll = false);
member this.Register : string * string * bool -> Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationRefreshOptions
Public Function Register (key As String, Optional label As String = "\0", Optional refreshAll As Boolean = false) As AzureAppConfigurationRefreshOptions

参数

key
String

键值键。

label
String

键值的标签。

refreshAll
Boolean

如果为 true,则此键的值更改将刷新配置提供程序使用的所有键值。

返回

适用于