<PackageReference Include="Microsoft.ApplicationInsights" Version="2.22.0" />

Microsoft.ApplicationInsights.Extensibility.ISerializationWriter

public interface ISerializationWriter
The interface for defining writers capable of serializing data into various formats.

Marks ending of a complex object.

void WriteProperty(string name, string value)

Writes name and value for a string field.

void WriteProperty(string name, double? value)

Writes name and value for a double field.

void WriteProperty(string name, int? value)

Writes name and value for a int field.

void WriteProperty(string name, bool? value)

Writes name and value for a boolean field.

void WriteProperty(string name, TimeSpan? value)

Writes name and value for a TimeSpan field.

void WriteProperty(string name, DateTimeOffset? value)

Writes name and value for a DateTimeOffset field.

void WriteProperty(string name, ISerializableWithWriter value)

Writes name and value for a ISerializableWithWriter field.

Writes value ISerializableWithWriter field.

void WriteProperty(string name, IList<string> items)

Writes name and values for a IList field of strings.

void WriteProperty(string name, IList<ISerializableWithWriter> items)

Writes name and values for a IList field of objects implementing ISerializableWithWriter.

void WriteProperty(string name, IDictionary<string, string> items)

Writes name and value for a IDictionary field with string,string as key,value.

void WriteProperty(string name, IDictionary<string, double> items)

Writes name and value for a IDictionary field with string,string as key,value.

void WriteStartObject(string name)

Marks beginning of a complex object.

Marks beginning of a complex object.