C# Class SecureDelete.WipeContext

Manages a native wipe context.
Afficher le fichier Open project: gratianlup/SecureDelete Class Usage Examples

Méthodes publiques

Méthode Description
CreateContext ( ) : bool

Create a context

DestroyContext ( ) : bool

Destroy a context

GetChildWipeStatus ( int child, NativeMethods &status ) : bool

Get the wipe status of a child

GetChildrenNumber ( int &childrenNumber ) : bool

Get the number of children

GetContextStatus ( ContextStatus &status ) : bool

Get the status from the native context

GetError ( int index, NativeMethods &error ) : bool

Get an error by its index

GetErrorNumber ( int &errorNumber ) : bool

Get the error number

GetErrors ( ) : SecureDelete.NativeMethods.WError[]

Get all errors

GetFailedObject ( int index, NativeMethods &item, bool getAssociatedError, NativeMethods &error ) : bool

Get an failed object, and optionally, its associated error

GetFailedObjectNumber ( int &failedNumber ) : bool

Get the number of failed objects

GetFailedObjects ( ) : SecureDelete.NativeMethods.WSmallObject[]

Get all failed objects

GetFailedObjectsWithErrors ( ) : NativeMethods.WError>[].KeyValuePair

Get all failed objects with their associated errors

GetWipeStatus ( NativeMethods &status ) : bool

Get the wipe status of the context

InitializeContext ( NativeMethods options ) : bool

Initialize the context with the given settings

InserObjectRange ( NativeMethods items ) : bool

Insert object from an array into the context

InsertObject ( NativeMethods item ) : bool

Insert an object into the context

SetContextStatus ( ContextStatus newStatus ) : bool

Set the status of the context (wipe,paused,stopped)

WipeContext ( ) : System

Private Methods

Méthode Description
CheckContextClosed ( ) : void

Throw an exception if the context is not closed

CheckContextInitialized ( ) : void

Trow an exception if the context is not initialized

CheckContextOpen ( ) : void

Trow an exception if the context is not open

ValidResult ( int result ) : bool

Check the result received from the native methods

Method Details

CreateContext() public méthode

Create a context
public CreateContext ( ) : bool
Résultat bool

DestroyContext() public méthode

Destroy a context
public DestroyContext ( ) : bool
Résultat bool

GetChildWipeStatus() public méthode

Get the wipe status of a child
public GetChildWipeStatus ( int child, NativeMethods &status ) : bool
child int
status NativeMethods
Résultat bool

GetChildrenNumber() public méthode

Get the number of children
public GetChildrenNumber ( int &childrenNumber ) : bool
childrenNumber int
Résultat bool

GetContextStatus() public méthode

Get the status from the native context
public GetContextStatus ( ContextStatus &status ) : bool
status ContextStatus
Résultat bool

GetError() public méthode

Get an error by its index
public GetError ( int index, NativeMethods &error ) : bool
index int
error NativeMethods
Résultat bool

GetErrorNumber() public méthode

Get the error number
public GetErrorNumber ( int &errorNumber ) : bool
errorNumber int
Résultat bool

GetErrors() public méthode

Get all errors
public GetErrors ( ) : SecureDelete.NativeMethods.WError[]
Résultat SecureDelete.NativeMethods.WError[]

GetFailedObject() public méthode

Get an failed object, and optionally, its associated error
public GetFailedObject ( int index, NativeMethods &item, bool getAssociatedError, NativeMethods &error ) : bool
index int
item NativeMethods
getAssociatedError bool
error NativeMethods
Résultat bool

GetFailedObjectNumber() public méthode

Get the number of failed objects
public GetFailedObjectNumber ( int &failedNumber ) : bool
failedNumber int
Résultat bool

GetFailedObjects() public méthode

Get all failed objects
public GetFailedObjects ( ) : SecureDelete.NativeMethods.WSmallObject[]
Résultat SecureDelete.NativeMethods.WSmallObject[]

GetFailedObjectsWithErrors() public méthode

Get all failed objects with their associated errors
public GetFailedObjectsWithErrors ( ) : NativeMethods.WError>[].KeyValuePair
Résultat NativeMethods.WError>[].KeyValuePair

GetWipeStatus() public méthode

Get the wipe status of the context
public GetWipeStatus ( NativeMethods &status ) : bool
status NativeMethods
Résultat bool

InitializeContext() public méthode

Initialize the context with the given settings
public InitializeContext ( NativeMethods options ) : bool
options NativeMethods
Résultat bool

InserObjectRange() public méthode

Insert object from an array into the context
public InserObjectRange ( NativeMethods items ) : bool
items NativeMethods
Résultat bool

InsertObject() public méthode

Insert an object into the context
public InsertObject ( NativeMethods item ) : bool
item NativeMethods
Résultat bool

SetContextStatus() public méthode

Set the status of the context (wipe,paused,stopped)
public SetContextStatus ( ContextStatus newStatus ) : bool
newStatus ContextStatus
Résultat bool

WipeContext() public méthode

public WipeContext ( ) : System
Résultat System