JsonSerializer.Serialize Method

Namespace: Microsoft.ApplicationInsights.Extensibility.Implementation
Assembly: Microsoft.ApplicationInsights (in Microsoft.ApplicationInsights.dll)

'Usage
Dim telemetryItems As IEnumerable(Of ITelemetry)
Dim compress As Boolean
Dim returnValue As Byte()

returnValue = JsonSerializer.Serialize(telemetryItems, compress)

public static byte[] Serialize (
	IEnumerable<ITelemetry> telemetryItems,
	[OptionalAttribute] bool compress
)
public static byte[] Serialize (
	IEnumerable<ITelemetry> telemetryItems, 
	/** @attribute OptionalAttribute() */ boolean compress
)
public static function Serialize (
	telemetryItems : IEnumerable<ITelemetry>, 
	compress : boolean
) : byte[]

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows 8, Windows Server 2012

 

Show: