Пример #1
0
        /// <summary>
        /// Sends a response to a request to erase a file from an
        /// authenticated remote device
        /// </summary>
        /// <param name="response">The response to the erase request</param>
        public void SendEraseResponse(EraseResponse response)
        {
            if (!bInitialized)
            {
                throw new ObjectDisposedException("ANTFSClient object has been disposed");
            }

            ReturnCode theReturn = (ReturnCode)ANTFSClient_SendEraseResponse(unmanagedClientPtr, (byte)response);

            if (theReturn != ReturnCode.Pass)
            {
                throw new ANTFS_RequestFailed_Exception("SendEraseRequest", theReturn);
            }
        }
Пример #2
0
        /// <summary>
        /// Sends a response to a request to erase a file from an
        /// authenticated remote device
        /// </summary>
        /// <param name="response">The response to the erase request</param>
        public void SendEraseResponse(EraseResponse response)
        {
            if (!bInitialized)
                throw new ObjectDisposedException("ANTFSClient object has been disposed");

            ReturnCode theReturn = (ReturnCode)ANTFSClient_SendEraseResponse(unmanagedClientPtr, (byte)response);
            if (theReturn != ReturnCode.Pass)
                throw new ANTFS_RequestFailed_Exception("SendEraseRequest", theReturn);
        }