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