IndividualEnrollmentsClient.CreateOrUpdateAsync Method
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.
Create or update an individual enrollment.
public System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Service.IndividualEnrollment> CreateOrUpdateAsync (Microsoft.Azure.Devices.Provisioning.Service.IndividualEnrollment individualEnrollment, System.Threading.CancellationToken cancellationToken = default);
member this.CreateOrUpdateAsync : Microsoft.Azure.Devices.Provisioning.Service.IndividualEnrollment * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Service.IndividualEnrollment>
Public Function CreateOrUpdateAsync (individualEnrollment As IndividualEnrollment, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IndividualEnrollment)
Parameters
- individualEnrollment
- IndividualEnrollment
The individual enrollment to create or update.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The created or updated individual enrollment.
Exceptions
If the service was not able to create or update the enrollment.
If the provided individualEnrollment
is null.
If the service was not able to create or update the enrollment.
If the provided cancellationToken
has requested cancellation.
Applies to
Azure SDK for .NET
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin