MessageQueueTask コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
MessageQueueTask クラスの新しいインスタンスを初期化します。
public:
MessageQueueTask();
public MessageQueueTask();
Public Sub New ()
例
以下のコード例は新しいメッセージキュータスクを作成します。
MessageQueueTask myMSMQ = new MessageQueueTask();
Dim myMSMQ As MessageQueueTask = New MessageQueueTask()
注釈
コードサンプルはタスクコンストラクタの呼び出し方を示しています。 しかし、ほとんどの場合、タスクはパッケージのメンバーとして作成します。 課題の鋳造についての詳細は、 Addのコメントを参照してください。
Package pkg = new Package();
Executable exec1 = pkg.Executables.Add("STOCK:MSMQTask");
TaskHost th = exec1 as TaskHost;
// You can cast the InnerObject of the TaskHost
// to the specific class.
// For the code samples, te properties of the task are accessed
// by using the Properties collection of the TaskHost.
// MSMQTask myTask = th.InnerObject as MSMQTask;
Dim pkg As Package = New Package()
Dim exec1 As Executable = pkg.Executables.Add("STOCK:MSMQTask")
Dim th As TaskHost = exec1 as TaskHost
' You can cast the InnerObject of the TaskHost
' to the specific class.
' For the code samples, the properties of the task are accessed
' by using the Properties collection of the TaskHost.
' Dim myTask As MSMQTask = th.InnerObject as MSMQTask
BulkInsertTaskの性質と方法はTaskHost変数thを用いて利用可能です。