Share via


MobileBroadbandModemIsolation Klasse

Definition

Eine Klasse mit Methoden zum Aufheben und Zulassen bestimmter Arten von Datenverkehr über das mobile Breitbandmodem; im Wesentlichen die Benutzerausrüstung (User Equipment, UE) oder das Gerät isolieren.

public ref class MobileBroadbandModemIsolation sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.NetworkOperators.IMobileBroadbandModemIsolationFactory, 393216, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MobileBroadbandModemIsolation final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.NetworkOperators.IMobileBroadbandModemIsolationFactory), 393216, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MobileBroadbandModemIsolation
function MobileBroadbandModemIsolation(modemDeviceId, ruleGroupId)
Public NotInheritable Class MobileBroadbandModemIsolation
Vererbung
Object Platform::Object IInspectable MobileBroadbandModemIsolation
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10, version 1803 (eingeführt in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v6.0)
App-Funktionen
cellularDeviceControl cellularDeviceIdentity

Konstruktoren

MobileBroadbandModemIsolation(String, String)

Erstellt eine neue instance einer MobileBroadbandModemIsolation.

Methoden

AddAllowedHost(HostName)

Fügt einen zulässigen Host hinzu. Sie können diese Methode mehrmals aufrufen, um mehrere zulässige Hosts hinzuzufügen. Datenverkehr zu den hinzugefügten Hosts ist zulässig, nachdem Sie ApplyConfigurationAsync aufgerufen haben.

AddAllowedHostRange(HostName, HostName)

Fügt einen Bereich zulässiger Hosts hinzu. Sie können diese Methode mehrmals aufrufen, um mehrere Bereiche zulässiger Hosts hinzuzufügen. Datenverkehr zu den hinzugefügten Hosts ist zulässig, nachdem Sie ApplyConfigurationAsync aufgerufen haben.

ApplyConfigurationAsync()

Isoliert das Modem asynchron, um nur Kernnetzwerkdatenverkehr (z. B. DHCP, DNS und ICMP) oder Datenverkehr an eine Reihe zulässiger Hosts zuzulassen, wie durch AddAllowedHost oder AddAllowedHostRange angegeben.

ClearConfigurationAsync()

Lässt asynchron den gesamten Datenverkehr über das Modem zu.

Gilt für: