TestClusterExtensions.GetConfigurationValue 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetConfigurationValue(IHostBuilder, String) |
获取配置值。 |
GetConfigurationValue(ISiloBuilder, String) | |
GetConfigurationValue(ISiloHostBuilder, String) |
GetConfigurationValue(IHostBuilder, String)
获取配置值。
public static string GetConfigurationValue (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, string key);
static member GetConfigurationValue : Microsoft.Extensions.Hosting.IHostBuilder * string -> string
<Extension()>
Public Function GetConfigurationValue (hostBuilder As IHostBuilder, key As String) As String
参数
- hostBuilder
- IHostBuilder
主机生成器。
- key
- String
键。
返回
配置值。
适用于
GetConfigurationValue(ISiloBuilder, String)
- Source:
- TestClusterExtensions.cs
public static string GetConfigurationValue (this Orleans.Hosting.ISiloBuilder hostBuilder, string key);
static member GetConfigurationValue : Orleans.Hosting.ISiloBuilder * string -> string
<Extension()>
Public Function GetConfigurationValue (hostBuilder As ISiloBuilder, key As String) As String
参数
- hostBuilder
- ISiloBuilder
- key
- String
返回
适用于
GetConfigurationValue(ISiloHostBuilder, String)
- Source:
- TestClusterExtensions.cs
public static string GetConfigurationValue (this Orleans.Hosting.ISiloHostBuilder hostBuilder, string key);
static member GetConfigurationValue : Orleans.Hosting.ISiloHostBuilder * string -> string
<Extension()>
Public Function GetConfigurationValue (hostBuilder As ISiloHostBuilder, key As String) As String
参数
- hostBuilder
- ISiloHostBuilder
- key
- String