IndividualEnrollmentsClient.DeleteAsync 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.
Overloads
DeleteAsync(IndividualEnrollment, CancellationToken) |
Delete an individual enrollment. |
DeleteAsync(String, CancellationToken) |
Delete an individual enrollment. |
DeleteAsync(IndividualEnrollment, CancellationToken)
Delete an individual enrollment.
public System.Threading.Tasks.Task DeleteAsync (Microsoft.Azure.Devices.Provisioning.Service.IndividualEnrollment individualEnrollment, System.Threading.CancellationToken cancellationToken = default);
member this.DeleteAsync : Microsoft.Azure.Devices.Provisioning.Service.IndividualEnrollment * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteAsync (individualEnrollment As IndividualEnrollment, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- individualEnrollment
- IndividualEnrollment
The individual enrollment to delete.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Exceptions
If the client failed to send the request or service was not able to execute the operation.
If the provided individualEnrollment
is null.
If the client failed to send the request or service was not able to execute the operation.
If the provided cancellationToken
has requested cancellation.
Applies to
DeleteAsync(String, CancellationToken)
Delete an individual enrollment.
public System.Threading.Tasks.Task DeleteAsync (string registrationId, System.Threading.CancellationToken cancellationToken = default);
member this.DeleteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteAsync (registrationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- registrationId
- String
The Id of the individual enrollment to delete.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Exceptions
If the client failed to send the request or service was not able to execute the operation.
If the provided registrationId
is null.
If the provided registrationId
is empty or white space.
If the client failed to send the request or service was not able to execute the operation.
If the provided cancellationToken
has requested cancellation.
Applies to
Azure SDK for .NET