GattSession.MaintainConnection 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.
Gets or sets a Boolean value that indicates whether the connection should be maintained.
public:
property bool MaintainConnection { bool get(); void set(bool value); };
bool MaintainConnection();
void MaintainConnection(bool value);
public bool MaintainConnection { get; set; }
var boolean = gattSession.maintainConnection;
gattSession.maintainConnection = boolean;
Public Property MaintainConnection As Boolean
Property Value
bool
true
if the connection should be maintained, otherwise false
. false
by default.
Windows requirements
App capabilities |
bluetooth
|
Remarks
If GattSession.MaintainConnection is set to true
, then the system waits indefinitely for a connection, and it will connect when the device is available. There's nothing for your application to wait on, since GattSession.MaintainConnection is a property.