GetTextForScript メソッド (ScriptingOptions, Boolean, String[])

スクリプト作成用のテキストを取得します。

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

構文

'宣言
Protected Function GetTextForScript ( _
    so As ScriptingOptions, _
    forCreate As Boolean, _
    expectedObjectTypes As String() _
) As String
'使用
Dim so As ScriptingOptions
Dim forCreate As Boolean
Dim expectedObjectTypes As String()
Dim returnValue As String

returnValue = Me.GetTextForScript(so, _
    forCreate, expectedObjectTypes)
protected string GetTextForScript(
    ScriptingOptions so,
    bool forCreate,
    string[] expectedObjectTypes
)
protected:
String^ GetTextForScript(
    ScriptingOptions^ so, 
    bool forCreate, 
    array<String^>^ expectedObjectTypes
)
member GetTextForScript : 
        so:ScriptingOptions * 
        forCreate:bool * 
        expectedObjectTypes:string[] -> string 
protected function GetTextForScript(
    so : ScriptingOptions, 
    forCreate : boolean, 
    expectedObjectTypes : String[]
) : String

パラメーター

  • forCreate
    型: System. . :: . .Boolean
    テキストをオブジェクトの作成に使用するかどうかを示す Boolean 値です。
    True の場合、オブジェクトの作成にテキストが使用されます。False の場合、オブジェクトの作成にテキストは使用されません。
  • expectedObjectTypes
    型: array<System. . :: . .String> [] () [] []
    予期されるオブジェクトの種類を示す String 配列です。

戻り値

型: System. . :: . .String
スクリプト作成用のテキストを示す String 値です。

使用例

スクリプト