Twin Class
Definition
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.
Twin Representation
[Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Devices.Shared.TwinJsonConverter))]
public class Twin : Microsoft.Azure.Devices.Shared.IETagHolder
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Devices.Shared.TwinJsonConverter))>]
type Twin = class
interface IETagHolder
Public Class Twin
Implements IETagHolder
- Inheritance
-
Twin
- Attributes
-
Newtonsoft.Json.JsonConverterAttribute
- Implements
Constructors
Twin() |
Creates an instance of Twin |
Twin(String) |
Creates an instance of Twin |
Twin(TwinProperties) |
Creates an instance of Twin |
Properties
AuthenticationType |
Corresponding Device's authentication type |
Capabilities |
Gets the Twin capabilities. These are read only. |
CloudToDeviceMessageCount |
Number of messages sent to the corresponding Device from the Cloud |
Configurations |
Gets the Twin configuration properties. These are read only |
ConnectionState |
Corresponding Device's ConnectionState |
DeviceId |
Gets and sets the Twin Id. |
DeviceScope |
The scope of the device. Auto-generated and immutable for edge devices and modifiable in leaf devices to create child/parent relationship. |
ETag |
Twin's ETag |
LastActivityTime |
Time when the corresponding Device was last active |
ModelId |
The DTDL model Id of the device. |
ModuleId |
Gets and sets the Twin Module Id. |
ParentScopes |
The scopes of the upper level edge devices if applicable. Only available for edge devices. |
Properties |
Gets and sets the Twin properties. |
Status |
Gets the corresponding Device's Status. |
StatusReason |
Reason, if any, for the corresponding Device to be in specified Status |
StatusUpdatedTime |
Time when the corresponding Device's Status was last updated |
Tags |
Gets and sets the Twin tags. |
Version |
Twin's Version |
X509Thumbprint |
Corresponding Device's X509 thumbprint |
Methods
ToJson(Formatting) |
Gets the Twin as a JSON string |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기