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 ();

Applies to

ProvisioningTwinProperties(String)

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

public ProvisioningTwinProperties (string twinJson);

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);

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);

Parameters

twinJson
String

JSON fragment containing the twin data.

metadataJson
String

JSON fragment containing the metadata.

Applies to