Dela via


MobileBroadbandModemIsolation.AddAllowedHost(HostName) Method

Definition

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

public:
 virtual void AddAllowedHost(HostName ^ host) = AddAllowedHost;
void AddAllowedHost(HostName const& host);
public void AddAllowedHost(HostName host);
function addAllowedHost(host)
Public Sub AddAllowedHost (host As HostName)

Parameters

host
HostName

The allowed host, whose type must be either IPv4 or IPv6.

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