示例#1
0
        /// <summary>
        /// Remove IPConfig
        /// </summary>
        /// <param name="nic">Network device.</param>
        public static void RemoveIPConfig(NetworkDevice nic)
        {
            IPConfig config = NetworkConfiguration.Get(nic);

            AddressMap.Remove(config.IPAddress.Hash);
            MACMap.Remove(nic.MACAddress.Hash);
            IPConfig.Remove(config);
            NetworkConfiguration.Remove(nic);
        }