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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin