Share via


NetworkOperatorTetheringAccessPointConfiguration 類別

定義

提供設定及建立包含特定網路 SSID 之物件的能力,並指定用來驗證嘗試建立網路連線至連線網路之用戶端的複雜密碼。

連線可讓 Windows 裝置作為行動熱點,透過 Wi-Fi 或藍牙提供網際網路連線。 您可以在 Wi-Fi 存取點上設定屬性,例如網路 SSID、密碼和無線頻率範圍。

public ref class NetworkOperatorTetheringAccessPointConfiguration sealed
/// [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 NetworkOperatorTetheringAccessPointConfiguration 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 NetworkOperatorTetheringAccessPointConfiguration final
[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 NetworkOperatorTetheringAccessPointConfiguration
[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 NetworkOperatorTetheringAccessPointConfiguration
function NetworkOperatorTetheringAccessPointConfiguration()
Public NotInheritable Class NetworkOperatorTetheringAccessPointConfiguration
繼承
Object Platform::Object IInspectable NetworkOperatorTetheringAccessPointConfiguration
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
wiFiControl

備註

Windows 10 1607 版支援行動熱點,這是行動寬頻連線功能的增強版本。 行動熱點和 Wi-Fi 直接技術無法同時執行。 行動熱點優先于所有 Wi-Fi 直接案例。 例如,螢幕投影和共用無法同時執行。

版本歷程記錄

Windows 版本 SDK 版本 已新增值
2004 19041 樂隊
2004 19041 IsBandSupported
2004 19041 IsBandSupportedAsync

建構函式

NetworkOperatorTetheringAccessPointConfiguration()

建立 NetworkOperatorTetheringAccessPointConfiguration 的實例。

屬性

AuthenticationKind

取得或設定要用於 Wi-Fi 連線的驗證種類。

Band

取得或設定 Wi-Fi 存取點的無線頻率範圍。 使用 IsBandSupportedIsBandSupportedAsync 來檢查 Wi-Fi 配接器是否允許設定特定的頻率範圍。

Passphrase

取得或設定用來驗證連線的複雜密碼。

注意

802.11 規格中所述,複雜密碼必須在標準 ASCII 可列印字元集中包含 8 到 63 個字元。

Ssid

取得或設定要用於網路連線的 SSID。

注意

SSID 會使用系統預設地區設定的 Microsoft 字碼頁進行編碼。 此 SSID 可能會以不同方式出現在使用不同系統地區設定之系統上的 Windows 網路選取 UI 中。 強烈建議您使用標準 ASCII 可列印字元集中的字元來設定值,以避免任何跨地區設定不一致。

方法

IsAuthenticationKindSupported(TetheringWiFiAuthenticationKind)

擷取值,指出 Wi-Fi 配接器是否允許使用特定驗證類型來設定存取點。

IsAuthenticationKindSupportedAsync(TetheringWiFiAuthenticationKind)

以非同步方式擷取值,指出 Wi-Fi 配接器是否允許使用特定驗證類型來設定存取點。

IsBandSupported(TetheringWiFiBand)

檢查 Wi-Fi 存取點是否支援指定的無線頻率頻。

IsBandSupportedAsync(TetheringWiFiBand)

以非同步方式檢查 Wi-Fi 存取點是否支援指定的無線頻率頻。

適用於