Метод 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
Параметры
- so
Тип: Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
A ScriptingOptions object value that specifies the scripting options used for scripting the text.
- 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.
- expectedObjectTypes
Тип: array<System. . :: . .String> [] () [] []
A String array that specifies the expected object types.
Возвращаемое значение
Тип: System. . :: . .String
A String value that specifies the text for scripting.