HttpRequestHeaderCollection.HasKey(String) 方法

定義

判斷 HttpRequestHeaderCollection 是否包含指定的索引鍵。

public:
 virtual bool HasKey(Platform::String ^ key) = IMap<Platform::String ^, Platform::String ^>::HasKey;
bool HasKey(winrt::hstring const& key);
public bool HasKey(string key);
function hasKey(key)
Public Function HasKey (key As String) As Boolean

參數

key
String

Platform::String

winrt::hstring

與要尋找之專案相關聯的索引鍵。

傳回

Boolean

bool

如果找到索引鍵,則為true;否則為false

實作

適用於