共用方式為


WiFiDirectServiceAdvertiser.AutoAcceptSession 屬性

定義

取得或設定此服務公告的自動接受屬性。

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

屬性值

Boolean

bool

若為 true,則服務會自動接受來自服務入口網站的所有要求,以建立會話。 如果此值為 false,則當引發 SessionRequested 事件時,服務必須主動接受會話要求。

適用於