共用方式為


WiFiDirectConnectionParameters 類別

定義

應用程式用來指定 Wi-Fi 直接連線/配對作業的連接參數。

使用此類別的範例應用程式包括Wi-Fi Direct範例

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

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 引進)

備註

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1511 10586 GetDevicePairingKinds
1511 10586 PreferenceOrderedConfigurationMethods
1511 10586 PreferredPairingProcedure

建構函式

WiFiDirectConnectionParameters()

建立新的 WiFiDirectConnectionParameters 物件。

屬性

GroupOwnerIntent

Wi-Fi Direct connect/pairing 作業中用於群組擁有者交涉的群組擁有者意圖值。

PreferenceOrderedConfigurationMethods

依喜好設定順序取得支援的組態方法清單。

PreferredPairingProcedure

取得或設定值,指定裝置慣用的配對程式。

方法

GetDevicePairingKinds(WiFiDirectConfigurationMethod)

取得支援指定組態方法的 DevicePairingKinds 清單。

適用於

另請參閱