TwinCollection Class

Definition

Represents a collection of properties for Twin

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Devices.Shared.TwinCollectionJsonConverter))]
public class TwinCollection : System.Collections.IEnumerable
type TwinCollection = class
    interface IEnumerable
Public Class TwinCollection
Implements IEnumerable
Inheritance
System.Object
TwinCollection
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements
System.Collections.IEnumerable

Constructors

TwinCollection()

Creates instance of TwinCollection.

TwinCollection(JObject, JObject)

Creates a TwinCollection using the given JSON fragments for the body and metadata.

TwinCollection(String)

Creates a TwinCollection using a JSON fragment as the body.

TwinCollection(String, String)

Creates a TwinCollection using the given JSON fragments for the body and metadata.

Properties

Count

Gets the count of properties in the Collection

Item[String]

Property Indexer

Version

Gets the version of the TwinCollection

Methods

ClearMetadata()

Clear metadata out of the collection

Contains(String)

Determines whether the specified property is present

GetEnumerator() System.Collections.IEnumerable.GetEnumerator
GetLastUpdated()

Gets the LastUpdated time for this property

GetLastUpdatedVersion()

Gets the LastUpdatedVersion for this property

GetMetadata()

Gets the Metadata for this property

ToJson(Formatting)

Gets the TwinProperties as a JSON string

ToString() System.Object.ToString

Applies to