MobileBroadbandModemIsolation.AddAllowedHost(HostName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.