C# 클래스 SecureDelete.WipeContext

Manages a native wipe context.
파일 보기 프로젝트 열기: gratianlup/SecureDelete 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CreateContext() 공개 메소드

Create a context
public CreateContext ( ) : bool
리턴 bool

DestroyContext() 공개 메소드

Destroy a context
public DestroyContext ( ) : bool
리턴 bool

GetChildWipeStatus() 공개 메소드

Get the wipe status of a child
public GetChildWipeStatus ( int child, NativeMethods &status ) : bool
child int
status NativeMethods
리턴 bool

GetChildrenNumber() 공개 메소드

Get the number of children
public GetChildrenNumber ( int &childrenNumber ) : bool
childrenNumber int
리턴 bool

GetContextStatus() 공개 메소드

Get the status from the native context
public GetContextStatus ( ContextStatus &status ) : bool
status ContextStatus
리턴 bool

GetError() 공개 메소드

Get an error by its index
public GetError ( int index, NativeMethods &error ) : bool
index int
error NativeMethods
리턴 bool

GetErrorNumber() 공개 메소드

Get the error number
public GetErrorNumber ( int &errorNumber ) : bool
errorNumber int
리턴 bool

GetErrors() 공개 메소드

Get all errors
public GetErrors ( ) : SecureDelete.NativeMethods.WError[]
리턴 SecureDelete.NativeMethods.WError[]

GetFailedObject() 공개 메소드

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
리턴 bool

GetFailedObjectNumber() 공개 메소드

Get the number of failed objects
public GetFailedObjectNumber ( int &failedNumber ) : bool
failedNumber int
리턴 bool

GetFailedObjects() 공개 메소드

Get all failed objects
public GetFailedObjects ( ) : SecureDelete.NativeMethods.WSmallObject[]
리턴 SecureDelete.NativeMethods.WSmallObject[]

GetFailedObjectsWithErrors() 공개 메소드

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

GetWipeStatus() 공개 메소드

Get the wipe status of the context
public GetWipeStatus ( NativeMethods &status ) : bool
status NativeMethods
리턴 bool

InitializeContext() 공개 메소드

Initialize the context with the given settings
public InitializeContext ( NativeMethods options ) : bool
options NativeMethods
리턴 bool

InserObjectRange() 공개 메소드

Insert object from an array into the context
public InserObjectRange ( NativeMethods items ) : bool
items NativeMethods
리턴 bool

InsertObject() 공개 메소드

Insert an object into the context
public InsertObject ( NativeMethods item ) : bool
item NativeMethods
리턴 bool

SetContextStatus() 공개 메소드

Set the status of the context (wipe,paused,stopped)
public SetContextStatus ( ContextStatus newStatus ) : bool
newStatus ContextStatus
리턴 bool

WipeContext() 공개 메소드

public WipeContext ( ) : System
리턴 System