ChainedConfigurationProvider.TryGet(String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
嘗試取得指定鍵的設定值。
public:
virtual bool TryGet(System::String ^ key, [Runtime::InteropServices::Out] System::String ^ % value);
public bool TryGet(string key, out string? value);
abstract member TryGet : string * string -> bool
override this.TryGet : string * string -> bool
Public Function TryGet (key As String, ByRef value As String) As Boolean
參數
- key
- String
索引鍵。
- value
- String
當此方法回傳時,包含 值。
傳回
true 如果找到指定鍵的值,否則 false。