MessageProperties.ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>) MessageProperties.ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>) MessageProperties.ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>) Method

定義

判斷 MessageProperties 是否包含特定名稱。Determines whether the MessageProperties contains a specific name.

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>.Contains(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> pair) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>::Contains;
bool ICollection<KeyValuePair<string,object>>.Contains (System.Collections.Generic.KeyValuePair<string,object> pair);
Function Contains (pair As KeyValuePair(Of String, Object)) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Contains

參數

pair
KeyValuePair<String,Object>

索引鍵/值組,其包含要在 MessageProperties 中尋找之項目的名稱和值。A key/value pair that contains the name and value of the element to locate in the MessageProperties.

傳回

如果 MessageProperties 包含在指定 pair 中具有名稱和值的項目,則為 true,否則為 falsetrue if the MessageProperties contains an element with the name and value in the specified pair; otherwise, false.

實作

適用於