Jaa


GattSession.MaintainConnection Property

Definition

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

Boolean

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.

Applies to