Share via


WiFiDirectServiceAdvertiser.AutoAcceptSession Property

Definition

Gets or sets the Auto Accept property for this service advertisement.

public:
 property bool AutoAcceptSession { bool get(); void set(bool value); };
bool AutoAcceptSession();

void AutoAcceptSession(bool value);
public bool AutoAcceptSession { get; set; }
var boolean = wiFiDirectServiceAdvertiser.autoAcceptSession;
wiFiDirectServiceAdvertiser.autoAcceptSession = boolean;
Public Property AutoAcceptSession As Boolean

Property Value

Boolean

bool

When true, then the service automatically accepts all requests from service seekers to establish a session. If this value is false, then the service must actively accept a session request when the SessionRequested event is raised.

Applies to