Пример #1
0
        public static void ResetEthernetCameraAddress(string name, IPAddress address, IPAddress subnet, IPAddress gateway, int timeout)
        {
            Debug.Assert(name != null, "The name parameter cannot be null.");
            Debug.Assert(address != null, "The address parameter cannot be null.");
            Debug.Assert(subnet != null, "The subnet parameter cannot be null.");
            Debug.Assert(gateway != null, "The gateway parameter cannot be null.");

            int status = NiImaqdxDll.IMAQdxResetEthernetCameraAddress(name, address.ToString(), subnet.ToString(), gateway.ToString(), timeout);

            ExceptionBuilder.CheckErrorAndThrow(status);
        }