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)
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)
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