你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AzureAppConfigurationRefreshOptions.Register 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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,则此键的值更改将刷新配置提供程序使用的所有键值。
返回
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈