Amazon.IoT.AmazonIoTClient.DeleteThingAsync C# (CSharp) Метод

DeleteThingAsync() публичный Метод

Deletes the specified thing.
/// An unexpected error has occurred. /// /// The request is not valid. /// /// The specified resource does not exist. /// /// The service is temporarily unavailable. /// /// The rate exceeds the limit. /// /// You are not authorized to perform this operation. /// /// An exception thrown when the version of a thing passed to a command is different than /// the version specified with the --version parameter. ///
public DeleteThingAsync ( string thingName, System cancellationToken = default(CancellationToken) ) : Task
thingName string The name of the thing to delete.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<DeleteThingResponse> DeleteThingAsync(string thingName, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new DeleteThingRequest();
            request.ThingName = thingName;
            return DeleteThingAsync(request, cancellationToken);
        }

Same methods

AmazonIoTClient::DeleteThingAsync ( DeleteThingRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIoTClient