다음을 통해 공유


IConfigurationProvider.TryGet(String, String) Method

Definition

Tries to get a configuration value for the specified key.

public:
 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
Public Function TryGet (key As String, ByRef value As String) As Boolean

Parameters

key
String

The key.

value
String

When this method returns, contains the value for the specified key.

Returns

true if a value for the specified key was found, otherwise false.

Applies to