次の方法で共有


OperatorCollection.Script メソッド

オペレーターのコレクションの再作成に使用できる Transact-SQL スクリプトを生成します。

名前空間:  Microsoft.SqlServer.Management.Smo.Agent
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Public Function Script As StringCollection
'使用
Dim instance As OperatorCollection 
Dim returnValue As StringCollection 

returnValue = instance.Script()
public StringCollection Script()
public:
StringCollection^ Script()
member Script : unit -> StringCollection
public function Script() : StringCollection

戻り値

型: System.Collections.Specialized.StringCollection
スクリプト内の Transact-SQL ステートメントの一覧を含む StringCollection システム オブジェクトの値です。

説明

生成されたスクリプトには、ドキュメントに記載されていない内部プロシージャが含まれている場合があります。これらは、完全なスクリプト出力を行うために必要です。

使用例

コレクションの使用

関連項目

参照

OperatorCollection クラス

Script オーバーロード

Microsoft.SqlServer.Management.Smo.Agent 名前空間