SecureDelete.WipeContext.GetError C# (CSharp) Method

GetError() public method

Get an error by its index
public GetError ( int index, NativeMethods &error ) : bool
index int
error NativeMethods
return bool
        public bool GetError(int index, out NativeMethods.WError error)
        {
            CheckContextInitialized();

            // object can be inserted only when the context is stopped
            if(_status != ContextStatus.Stopped) {
                throw new Exception("Object can be inserted only when the context is stopped");
            }

            int result = NativeMethods.GetError(_contextId, index, out error);
            return ValidResult(result);
        }