IotHubClientOptions.PayloadConvention Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The payload convention to be used to serialize and encode the payload being sent to service.
public Microsoft.Azure.Devices.Client.PayloadConvention PayloadConvention { get; set; }
member this.PayloadConvention : Microsoft.Azure.Devices.Client.PayloadConvention with get, set
Public Property PayloadConvention As PayloadConvention
Property Value
Remarks
The PayloadConvention defines both the serializer and encoding to be used. You will only need to set this if you have objects that have special serialization rules or require a specific byte encoding.
The default value is set to DefaultPayloadConvention which uses the NewtonsoftJsonPayloadSerializer serializer and Utf8PayloadEncoder encoder.
Applies to
Azure SDK for .NET
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla