C# 클래스 SharpBits.Base.BitsManager

Use the IBackgroundCopyManager interface to create transfer jobs, retrieve an enumerator object that contains the jobs in the queue, and to retrieve individual jobs from the queue.
상속: IDisposable
파일 보기 프로젝트 열기: robertbaker/SevenUpdate 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Dispose void
GetErrorDescription string
NotificationHandlerOnJobErrorEvent void
NotificationHandlerOnJobModifiedEvent void
NotificationHandlerOnJobTransferredEvent void
NotifyOnJobRemoval void
PublishException void

공개 메소드들

메소드 설명
BitsManager ( ) : System

Initializes a new instance of the BitsManager class.

CreateJob ( string displayName, JobType jobType ) : BitsJob

Creates a new transfer job.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

EnumJobs ( JobOwner jobOwner = JobOwner.CurrentUser ) : void

Enumerates the collection of BitsJob, it also completes any job that has finished.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

GetErrorDescription ( int result ) : string

Gets the error description.

NotificationHandlerOnJobErrorEvent ( object sender, ErrorNotificationEventArgs e ) : void

Notifications the handler on job error event.

NotificationHandlerOnJobModifiedEvent ( object sender, NotificationEventArgs e ) : void

Notifications the handler on job modified event.

NotificationHandlerOnJobTransferredEvent ( object sender, NotificationEventArgs e ) : void

Notifications the handler on job transferred event.

NotifyOnJobRemoval ( BitsJob job ) : void

Notifies the on job removal.

PublishException ( BitsJob job, COMException exception ) : void

Publishes the exception.

메소드 상세

BitsManager() 공개 메소드

Initializes a new instance of the BitsManager class.
public BitsManager ( ) : System
리턴 System

CreateJob() 공개 메소드

Creates a new transfer job.
public CreateJob ( string displayName, JobType jobType ) : BitsJob
displayName string Null-terminated string that contains a display name for the job. Typically, the display name is used to identify the job in a user interface. Note that more than one job may have the same display name. Must not be null.The name is limited to 256 characters, not including the null terminator.
jobType JobType Type of transfer job, such as JobType.Download. For a list of transfer types, /// see the enumeration.
리턴 BitsJob

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

EnumJobs() 공개 메소드

Enumerates the collection of BitsJob, it also completes any job that has finished.
public EnumJobs ( JobOwner jobOwner = JobOwner.CurrentUser ) : void
jobOwner JobOwner The job owner.
리턴 void