Sdílet prostřednictvím


DigitalTwinsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DigitalTwins.Models.DigitalTwinsDescription> CreateOrUpdateAsync (this Microsoft.Azure.Management.DigitalTwins.IDigitalTwinsOperations operations, string resourceGroupName, string resourceName, Microsoft.Azure.Management.DigitalTwins.Models.DigitalTwinsDescription digitalTwinsCreate, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.DigitalTwins.IDigitalTwinsOperations * string * string * Microsoft.Azure.Management.DigitalTwins.Models.DigitalTwinsDescription * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DigitalTwins.Models.DigitalTwinsDescription>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IDigitalTwinsOperations, resourceGroupName As String, resourceName As String, digitalTwinsCreate As DigitalTwinsDescription, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DigitalTwinsDescription)

Parameters

operations
IDigitalTwinsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group that contains the DigitalTwinsInstance.

resourceName
String

The name of the DigitalTwinsInstance.

digitalTwinsCreate
DigitalTwinsDescription

The DigitalTwinsInstance and security metadata.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to