ImportMode Enum
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.
Identifies the behavior when merging a device to the registry during import actions.
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public enum ImportMode
[<Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))>]
type ImportMode =
Public Enum ImportMode
- Inheritance
-
ImportMode
- Attributes
-
Newtonsoft.Json.JsonConverterAttribute
Fields
Create | 1 | If a device does not exist with the specified Id, it is newly registered. If the device already exists, an error is written to the log file. |
CreateOrUpdate | 0 | If a device does not exist with the specified Id, it is newly registered. If the device already exists, existing information is overwritten with the provided input data without regard to the ETag value. |
CreateOrUpdateIfMatchETag | 4 | If a device does not exist with the specified Id, it is newly registered. If the device already exists, existing information is overwritten with the provided input data only if there is an ETag match. If there is an ETag mismatch, an error is written to the log file. |
Delete | 5 | If a device already exists with the specified Id, it is deleted without regard to the ETag value. If the device does not exist, an error is written to the log file. |
DeleteIfMatchETag | 6 | If a device already exists with the specified Id, it is deleted only if there is an ETag match. If the device does not exist, an error is written to the log file. If there is an ETag mismatch, an error is written to the log file. |
Update | 2 | If a device already exists with the specified Id, existing information is overwritten with the provided input data without regard to the ETag value. If the device does not exist, an error is written to the log file. |
UpdateIfMatchETag | 3 | If a device already exists with the specified Id, existing information is overwritten with the provided input data only if there is an ETag match. If the device does not exist, or there is an ETag mismatch, an error is written to the log file. |
UpdateTwin | 7 | If a twin already exists with the specified Id, existing information is overwritten with the provided input data without regard to the ETag value. |
UpdateTwinIfMatchETag | 8 | If a twin already exists with the specified Id, existing information is overwritten with the provided input data only if there is an ETag match. The twin's ETag, is processed independently from the device's ETag. If there is a mismatch with the existing twin's ETag, an error is written to the log file. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기