SourceProfileConverter class | QSYS API Reference Guide

Estimated reading time: 2 minutes

The SourceProfileConverter class is responsible for converting source profiles.

Namespace: ASNA.DataGate.Providers.Serialization Assembly: ASNA.QSys.DataGate.Client.dll

Inheritance: Object –> JsonConverter –> JsonConverter<SourceProfile>

Constructors

Name Description
SourceProfileConverter(SourceProfileConverterOptions) Initializes a new instance of the class with the specified options.
SourceProfileConverter() Initializes a new instance of the class with default settings.

SourceProfileConverter(SourceProfileConverterOptions)

Initializes a new instance of the class with the specified options.

SourceProfileConverter(SourceProfileConverterOptions)

Parameters

Type Parameter name Description
SourceProfileConverterOptions opts The options for the source profile converter.

SourceProfileConverter()

Initializes a new instance of the class with default settings.

SourceProfileConverter()

Methods

Signature Description
Read(Utf8JsonReader&, Type, JsonSerializerOptions) Reads a SourceProfile from a Utf8JsonReader.
Write(Utf8JsonWriter, SourceProfile, JsonSerializerOptions) Writes a SourceProfile to a Utf8JsonWriter.

SourceProfile Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)

Reads a SourceProfile from a Utf8JsonReader.

SourceProfile Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

Type Parameter name Description
Utf8JsonReader& reader The Utf8JsonReader to read from.
Type typeToConvert The type of object to convert.
JsonSerializerOptions options Options for the serializer.

Returns

Type Description
SourceProfile A SourceProfile that was read from the Utf8JsonReader.

void Write(Utf8JsonWriter writer, SourceProfile value, JsonSerializerOptions options)

Writes a SourceProfile to a Utf8JsonWriter.

void Write(Utf8JsonWriter writer, SourceProfile value, JsonSerializerOptions options)

Parameters

Type Parameter name Description
Utf8JsonWriter writer The Utf8JsonWriter to write to.
SourceProfile value The SourceProfile to write.
JsonSerializerOptions options Options for the serializer.