SecureDelete.WipeContext.InsertObject C# (CSharp) Method

InsertObject() public method

Insert an object into the context
public InsertObject ( NativeMethods item ) : bool
item NativeMethods
return bool
        public bool InsertObject(NativeMethods.WObject item)
        {
            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");
            }

            // insert the object
            int result = NativeMethods.InsertWipeObject(_contextId, ref item);
            return ValidResult(result);
        }