UtilHostsDisable(String) Method
Disables an existing mapping.
Namespace: DevCase.Core.Networking.SecurityAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void Disable(
string hostName
)
Public Shared Sub Disable (
hostName As String
)
Dim hostName As String
UtilHosts.Disable(hostName)
public:
static void Disable(
String^ hostName
)
static member Disable :
hostName : string -> unit
No code example is currently available or this language may not be supported.
Parameters
- hostName String
-
The hostname.
FileNotFoundException
|
Hosts file not found.
|
Exception
|
Hostname is not mapped.
|
Exception
|
Hostname is already disabled.
|