DeploymentTraceEventArgs.AddEventData(String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.