Share via


ProvisioningTwinProperties Constructors

Definition

Overloads

ProvisioningTwinProperties()

Creates an instance of this class. Shouldn't use this constructor since _metadata is null and calling GetLastUpdated can result in NullReferenceException.

ProvisioningTwinProperties(String)

Creates an instance of this class using a JSON fragment as the body.

ProvisioningTwinProperties(JObject, JObject)

Creates an instance of this class using the given JSON fragments for the body and metadata.

ProvisioningTwinProperties(String, String)

Creates an instance of this class using the given JSON fragments for the body and metadata.

ProvisioningTwinProperties()

Creates an instance of this class. Shouldn't use this constructor since _metadata is null and calling GetLastUpdated can result in NullReferenceException.

public ProvisioningTwinProperties ();
Public Sub New ()

Applies to

ProvisioningTwinProperties(String)

Creates an instance of this class using a JSON fragment as the body.

public ProvisioningTwinProperties (string twinJson);
new Microsoft.Azure.Devices.Provisioning.Service.ProvisioningTwinProperties : string -> Microsoft.Azure.Devices.Provisioning.Service.ProvisioningTwinProperties
Public Sub New (twinJson As String)

Parameters

twinJson
String

JSON fragment containing the twin data.

Applies to

ProvisioningTwinProperties(JObject, JObject)

Creates an instance of this class using the given JSON fragments for the body and metadata.

public ProvisioningTwinProperties (Newtonsoft.Json.Linq.JObject twinJson, Newtonsoft.Json.Linq.JObject metadataJson);
new Microsoft.Azure.Devices.Provisioning.Service.ProvisioningTwinProperties : Newtonsoft.Json.Linq.JObject * Newtonsoft.Json.Linq.JObject -> Microsoft.Azure.Devices.Provisioning.Service.ProvisioningTwinProperties
Public Sub New (twinJson As JObject, metadataJson As JObject)

Parameters

twinJson
Newtonsoft.Json.Linq.JObject

JSON fragment containing the twin data.

metadataJson
Newtonsoft.Json.Linq.JObject

JSON fragment containing the metadata.

Applies to

ProvisioningTwinProperties(String, String)

Creates an instance of this class using the given JSON fragments for the body and metadata.

public ProvisioningTwinProperties (string twinJson, string metadataJson);
new Microsoft.Azure.Devices.Provisioning.Service.ProvisioningTwinProperties : string * string -> Microsoft.Azure.Devices.Provisioning.Service.ProvisioningTwinProperties
Public Sub New (twinJson As String, metadataJson As String)

Parameters

twinJson
String

JSON fragment containing the twin data.

metadataJson
String

JSON fragment containing the metadata.

Applies to