ProvisioningTwinProperties Constructors
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.
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. |
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
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
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
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
Feedback su Azure SDK for .NET
Azure SDK for .NET è un progetto di open source. Selezionare un collegamento per fornire feedback: