Share via


GetTextForScript 方法 (ScriptingOptions, Boolean, String[])

Gets the text for scripting.

命名空间:  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
    A Boolean value that specifies whether the text is used in the creation of an object.
    If True, the text is used for the creation of an object. Otherwise, False.

返回值

类型:System. . :: . .String
A String value that specifies the text for scripting.

示例

脚本撰写