WiFiDirectServiceAdvertiser.AutoAcceptSession 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定此服務公告的自動接受屬性。
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 事件時,服務必須主動接受會話要求。