Share via


DeploymentTraceEventArgs.AddEventData(String, Object) Method

Definition

Adds data to the current event argument.

protected:
 void AddEventData(System::String ^ key, System::Object ^ value);
protected void AddEventData (string key, object value);
member this.AddEventData : string * obj -> unit
Protected Sub AddEventData (key As String, value As Object)

Parameters

key
String

The key to use for the new data.

value
Object

The value of the data to add to the event argument.

Remarks

After data is added, it can be accessed through the EventData property. If the key already exists, the data is not added and no exceptions are thrown.

Applies to