JsonSerializer.Serialize Method

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


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

returnValue = JsonSerializer.Serialize(telemetryItems, compress)


Public Shared Function Serialize ( _
    telemetryItems As IEnumerable(Of ITelemetry), _
    <OptionalAttribute> Optional compress As Boolean = True _
) As Byte()
public static byte[] Serialize (
    IEnumerable<ITelemetry> telemetryItems,
    [OptionalAttribute] bool compress
static array<unsigned char>^ 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[]

Thread Safety

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

See Also


JsonSerializer Class
JsonSerializer Members
Microsoft.ApplicationInsights.Extensibility.Implementation Namespace