다음을 통해 공유


ProvisioningTwinProperties Class

Definition

Represents a collection of properties for device twin.

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Devices.Provisioning.Service.ProvisioningTwinPropertiesJsonConverter))]
public class ProvisioningTwinProperties : System.Collections.IEnumerable
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Devices.Provisioning.Service.ProvisioningTwinPropertiesJsonConverter))>]
type ProvisioningTwinProperties = class
    interface IEnumerable
Public Class ProvisioningTwinProperties
Implements IEnumerable
Inheritance
ProvisioningTwinProperties
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements

Constructors

ProvisioningTwinProperties()

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

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

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

Properties

Count

Gets the count of properties in the collection.

Item[String]

Property Indexer.

Version

Gets the version of the twin collection.

Methods

ClearMetadata()

Clears all metadata out of the twin collection as well as the base metadata object.

Contains(String)

Determines whether the specified property is present.

GetEnumerator()

Returns an enumerator that iterates through a collection.

GetLastUpdatedOnUtc()

Gets the time when this property was last updated in UTC.

GetLastUpdatedVersion()

Gets the LastUpdatedVersion for this property.

GetMetadata()

Gets the Metadata for this property.

ToString()

Returns a string that represents the current object.

Applies to