TelemetryEventCorrelation.Deserialize(String) 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.
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.