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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for