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

定義

將有指定名稱和屬性的項目加入 MessagePropertiesAdds an element with the specified name and property into the MessageProperties.

 virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>.Add(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> pair) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>::Add;
void ICollection<KeyValuePair<string,object>>.Add (System.Collections.Generic.KeyValuePair<string,object> pair);
Sub Add (pair As KeyValuePair(Of String, Object)) Implements ICollection(Of KeyValuePair(Of String, Object)).Add

參數

pair
KeyValuePair<String,Object>

索引鍵/值組,其包含要新增之項目的名稱和值。A key/value pair that contains the name and value of the element to add.

實作

適用於