共用方式為


WiFiDirectServiceSessionRequest 類別

定義

描述Wi-Fi直接服務會話要求。

public ref class WiFiDirectServiceSessionRequest sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WiFiDirectServiceSessionRequest final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WiFiDirectServiceSessionRequest : System.IDisposable
Public NotInheritable Class WiFiDirectServiceSessionRequest
Implements IDisposable
繼承
Object Platform::Object IInspectable WiFiDirectServiceSessionRequest
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

您的程式碼不會直接具現化此類別。 這個類別的實例位於傳遞至WiFiDirectServiceAdvertiser.SessionRequested事件處理常式的WiFiDirectServiceSessionRequestedEventArgs物件內。

屬性

DeviceInformation

取得要求裝置的裝置資訊。

ProvisioningInfo

取得建立會話時應如何執行布建的相關資訊。

SessionInfo

取得與此要求相關聯的會話資訊 Blob。

方法

Close()

關閉會話要求。 您的伺服器程式碼會呼叫此方法來拒絕會話要求。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

適用於

另請參閱