FormCollection.TryGetValue(String, StringValues) Metoda

Definicja

Pobiera wartość ze słownika.

public:
 virtual bool TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] Microsoft::Extensions::Primitives::StringValues % value);
public bool TryGetValue (string key, out Microsoft.Extensions.Primitives.StringValues value);
abstract member TryGetValue : string * StringValues -> bool
override this.TryGetValue : string * StringValues -> bool
Public Function TryGetValue (key As String, ByRef value As StringValues) As Boolean

Parametry

key
String

Nazwa nagłówka.

value
StringValues

Wartość.

Zwraca

true, jeśli element HeaderDictionary zawiera klucz; w przeciwnym razie wartość false.

Implementuje

Dotyczy