MobileBroadbandModemIsolation.AddAllowedHostRange(HostName, HostName) Method

Definition

Adds a range of allowed hosts. You can call this method multiple times to add multiple ranges of allowed hosts. Traffic to the added host(s) will be allowed after you call ApplyConfigurationAsync.

public:
 virtual void AddAllowedHostRange(HostName ^ first, HostName ^ last) = AddAllowedHostRange;
void AddAllowedHostRange(HostName const& first, HostName const& last);
public void AddAllowedHostRange(HostName first, HostName last);
function addAllowedHostRange(first, last)
Public Sub AddAllowedHostRange (first As HostName, last As HostName)

Parameters

first
HostName

The first allowed host in the range. Its type must be either IPv4 or IPv6.

last
HostName

The last allowed host in the range. Its type must be the same as that of first.

Windows requirements

App capabilities
cellularDeviceControl cellularDeviceIdentity

Remarks

You should add hosts before you call ApplyConfigurationAsync. The allowed hosts will be cleared after you call ClearConfigurationAsync.

Applies to