JsonSerializer.Serialize Method
Namespace: Microsoft.ApplicationInsights.Extensibility.Implementation
Assembly: Microsoft.ApplicationInsights (in Microsoft.ApplicationInsights.dll)
Usage
'Usage
Dim telemetryItems As IEnumerable(Of ITelemetry)
Dim compress As Boolean
Dim returnValue As Byte()
returnValue = JsonSerializer.Serialize(telemetryItems, compress)
Syntax
'Declaration
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
)
public:
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.
Platforms
Development Platforms
Windows 8, Windows Server 2012
See Also
Reference
JsonSerializer Class
JsonSerializer Members
Microsoft.ApplicationInsights.Extensibility.Implementation Namespace