MessageProperties.Add(String, Object) MessageProperties.Add(String, Object) MessageProperties.Add(String, Object) MessageProperties.Add(String, Object) Method

定義

將具有指定名稱和屬性的項目加入至 MessageProperties 集合。Adds an element with the specified name and property into the MessageProperties collection.

public:
 virtual void Add(System::String ^ name, System::Object ^ property);
public void Add (string name, object property);
abstract member Add : string * obj -> unit
override this.Add : string * obj -> unit
Public Sub Add (name As String, property As Object)

參數

name
String String String String

要新增的項目名稱。The name of the element to add.

property
Object Object Object Object

要加入的項目的值。The value of the element to add.

實作

適用於