AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the DeleteConnection operation. Disconnects a connected MQTT client from Amazon Web Services IoT Core. When you disconnect a client, Amazon Web Services IoT Core closes the client's network connection and optionally cleans the session state.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.IotData.AmazonIotDataRequest
      Amazon.IotData.Model.DeleteConnectionRequest

Namespace: Amazon.IotData.Model
Assembly: AWSSDK.IotData.dll
Version: 3.x.y.z

Syntax

C#
public class DeleteConnectionRequest : AmazonIotDataRequest
         IAmazonWebServiceRequest

The DeleteConnectionRequest type exposes the following members

Constructors

NameDescription
Public Method DeleteConnectionRequest()

Properties

NameTypeDescription
Public Property CleanSession System.Boolean

Gets and sets the property CleanSession.

Specifies whether to remove the client's session state when disconnecting. Set to TRUE to delete all session information, including subscriptions and queued messages. Set to FALSE to preserve the session state. By default, this is set to FALSE (preserves the session state).

Public Property ClientId System.String

Gets and sets the property ClientId.

The unique identifier of the MQTT client to disconnect. The client ID can't start with a dollar sign ($).

Public Property PreventWillMessage System.Boolean

Gets and sets the property PreventWillMessage.

Controls if Amazon Web Services IoT Core publishes the client's Last Will and Testament (LWT) message upon disconnection. Set to TRUE to prevent publishing the LWT message. Set to FALSE to allow publishing. By default, this is set to FALSE (allows publishing the LWT message).

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5