Share via


BitsJob Class

 

Provides a wrapper for Background Intelligent Transfer Service (BITS) jobs.

Namespace:   Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

Inheritance Hierarchy

System.Object
  Microsoft.ConfigurationManagement.Messaging.Framework.BitsJob

Syntax

[SerializableAttribute]
public sealed class BitsJob
[SerializableAttribute]
public ref class BitsJob sealed 
<SerializableAttribute>
Public NotInheritable Class BitsJob

Constructors

Name Description
System_CAPS_pubmethod BitsJob(BitsJobType, String)

Initializes a new instance of the BitsJob class.

Properties

Name Description
System_CAPS_pubproperty JobId

Gets the BITS job ID.

System_CAPS_pubproperty JobType

Gets the BITS job type.

Methods

Name Description
System_CAPS_pubmethod AddCertificate(MessageCertificateX509File)

Adds an X.509 certificate for client authentication.

System_CAPS_pubmethod AddCredentials(BitsAuthScheme, BitsAuthTarget, NetworkCredential)

Adds credentials to the BITS job. If the credential scheme is already represented, the credential is replaced.

System_CAPS_pubmethod AddFilesToJob(IEnumerable<BitsFileInfo>)

Adds a set of files to the BITS job.

System_CAPS_pubmethod AddFileToJob(Uri, String)

Adds a file to the BITS job.

System_CAPS_pubmethod Cancel()

Cancels the BITS job.

System_CAPS_pubmethod Complete()

Completes the BITS job. This method is called automatically if the job completes successfully.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Resume()

Resumes or starts the BITS job.

System_CAPS_pubmethod SetJobNotificationFlags(BitsJobNotificationType)

Sets the notification flags for the BITS job.

System_CAPS_pubmethod SetJobPriority(BitsJobPriority)

Sets a priority for the job.

System_CAPS_pubmethod SetNoProgressTimeout(UInt32)

Sets the timeout, in seconds, for when there is no progress on the job.

System_CAPS_pubmethod SetProxySettings(BitsJobProxyUsage, String, String)

Sets the proxy settings for a BITS job. For more information about the arguments for this method, see IBackgroundCopyJob::SetProxySettings method.

System_CAPS_pubmethod Suspend()

Suspends the BITS job.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Events

Name Description
System_CAPS_pubevent BitsJobProgress

Event raised when a BITS job is updated.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.ConfigurationManagement.Messaging.Framework Namespace

Return to top