IConfigurationProvider.TryGet(String, String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to get a configuration value for the specified key.
public:
bool TryGet(System::String ^ key, [Runtime::InteropServices::Out] System::String ^ % value);
C#
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
- key
- String
The key.
- value
- String
When this method returns, contains the value for the specified key.
true
if a value for the specified key was found, otherwise false
.
Produkt | Wersje |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: