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

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

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 DeleteThing ( string thingName ) : DeleteThingResponse
thingName string The name of the thing to delete.
Результат DeleteThingResponse
        public DeleteThingResponse DeleteThing(string thingName)
        {
            var request = new DeleteThingRequest();
            request.ThingName = thingName;
            return DeleteThing(request);
        }

Same methods

AmazonIoTClient::DeleteThing ( DeleteThingRequest request ) : DeleteThingResponse

Usage Example

Пример #1
0
        public static void Cleanup()
        {
            if (!string.IsNullOrEmpty(CREATED_THING_NAME))
            {
                using (var iotClient = new AmazonIoTClient())
                {
                    iotClient.DeleteThing(CREATED_THING_NAME);
                }
            }

            if (Client != null)
            {
                Client.Dispose();
            }
        }
AmazonIoTClient