SecureDelete.WipeContext.InsertObject C# (CSharp) Méthode

InsertObject() public méthode

Insert an object into the context
public InsertObject ( NativeMethods item ) : bool
item NativeMethods
Résultat 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);
        }