BitsHelper.CreateBitsJob Method (IMessage, BitsJobType, EventHandler<BitsJobEventArgs>, BitsFileInfo[])
Creates a BITS job from an existing message. The job will not start until Resume is called.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static BitsJob CreateBitsJob(
IMessage message,
BitsJobType jobType,
EventHandler<BitsJobEventArgs> jobEventHandler,
params BitsFileInfo[] filesToTransfer
)
public:
static BitsJob^ CreateBitsJob(
IMessage^ message,
BitsJobType jobType,
EventHandler<BitsJobEventArgs^>^ jobEventHandler,
... array<BitsFileInfo>^ filesToTransfer
)
Public Shared Function CreateBitsJob (
message As IMessage,
jobType As BitsJobType,
jobEventHandler As EventHandler(Of BitsJobEventArgs),
ParamArray filesToTransfer As BitsFileInfo()
) As BitsJob
Parameters
message
Type: Microsoft.ConfigurationManagement.Messaging.Framework.IMessageThe message.
jobType
Type: Microsoft.ConfigurationManagement.Messaging.Framework.Bits.BitsJobTypeThe BITS job type.
jobEventHandler
Type: System.EventHandler<BitsJobEventArgs>The job event handler, as BitsJobEventArgs.
filesToTransfer
Type: Microsoft.ConfigurationManagement.Messaging.Framework.Bits.BitsFileInfo[]The array of files to transfer.
Return Value
Type: Microsoft.ConfigurationManagement.Messaging.Framework.BitsJob
See Also
BitsHelper Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top