Udostępnij za pośrednictwem


ProvisioningTwinState Class

Definition

Representation of a single twin initial state.

public class ProvisioningTwinState
type ProvisioningTwinState = class
Public Class ProvisioningTwinState
Inheritance
ProvisioningTwinState

Examples

For instance, the following is a valid twin state, represented as initialTwin in the rest API.

{
    "initialTwin": {
        "tags":{
            "SpeedUnity":"MPH",
        }
        "properties":{
            "desired": {
                "MaxSpeed":{
                    "Value":500,
                    "NewValue":300
                },
                "$metadata":{
                    "$lastUpdated":"2017-09-21T02:07:44.238Z",
                    "$lastUpdatedVersion":4,
                    "MaxSpeed":{
                        "$lastUpdated":"2017-09-21T02:07:44.238Z",
                        "$lastUpdatedVersion":4,
                        "Value":{
                            "$lastUpdated":"2017-09-21T02:07:44.238Z",
                            "$lastUpdatedVersion":4
                        },
                        "NewValue":{
                            "$lastUpdated":"2017-09-21T02:07:44.238Z",
                            "$lastUpdatedVersion":4
                        }
                    }
                },
                "$version":4
            }
        }
    }
}

Remarks

Each entity in the collections can contain a associated ProvisioningTwinMetadata.

These metadata are provided by the Service and contains information about the last updated date time, and version.

Constructors

ProvisioningTwinState(IDictionary<String,Object>, ProvisioningTwinProperties)

Creates an instance of this class.

Properties

DesiredProperties

Getter and setter the desired properties.

Tags

Getter and setter the for tags.

Methods

ToString()

Convert this object in a pretty print format.

Applies to