FormCollection.TryGetValue(String, StringValues) 方法

定義

從字典擷取值。

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

參數

key
String

標頭名稱。

value
StringValues

數值。

傳回

如果 HeaderDictionary 包含索引鍵,則為 true;否則為 false。

實作

適用於