共用方式為


MessageProperties.ICollection<KeyValuePair<String,Object>>.Contains 方法

定義

判斷 MessageProperties 是否包含特定名稱。

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.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);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
Function Contains (pair As KeyValuePair(Of String, Object)) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Contains

參數

pair
KeyValuePair<String,Object>

索引鍵/值組,其包含要在 MessageProperties 中尋找之項目的名稱和值。

傳回

如果 true 包含在指定 MessageProperties 中具有名稱和值的項目,則為 pair,否則為 false

實作

適用於