Freigeben über


TelemetryEventCorrelation.Deserialize(String) Method

Definition

Deserialize a json string to TelemetryEventCorrelation object.

public:
 static Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation Deserialize(System::String ^ jsonString);
public static Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation Deserialize (string jsonString);
static member Deserialize : string -> Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation
Public Shared Function Deserialize (jsonString As String) As TelemetryEventCorrelation

Parameters

jsonString
String

A json string to include id and event type properties. E.g., {"id":"d7149afe-632f-4278-b94e-3915a79ee60f","eventType":"Operation"}

Returns

A TelemetryEventCorrelation object. It would throw Newtonsoft.Json.JsonReaderException if parameter jsonString is an invalid Json string. It would throw Newtonsoft.Json.JsonSerializationException if any of conditions below happen, 1. Miss properties "id" or "eventType" 2. Invalid property value. "id" value should be a guid string, and "eventType" should be enum name from DataModelEventType.

Applies to