IotHubClientMqttSettings.CleanSession Property
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.
Flag to specify if a subscription should persist across different sessions. The default value is false.
public bool CleanSession { get; set; }
member this.CleanSession : bool with get, set
Public Property CleanSession As Boolean
Property Value
Remarks
If set to false: the device will receive messages that were sent to it while it was disconnected.
If set to true: the device will receive only those messages that were sent to it after it successfully subscribed to the device bound message topic.
Applies to
Azure SDK for .NET