Export (0) Print
Expand All

ScriptNameObjectBase.GetTextForScript Method (ScriptingOptions, Boolean, String[])

Gets the text for scripting.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

protected string GetTextForScript(
	ScriptingOptions so,
	bool forCreate,
	string[] expectedObjectTypes
)

Parameters

so
Type: Microsoft.SqlServer.Management.Smo.ScriptingOptions
A ScriptingOptions object value that specifies the scripting options used for scripting the text.
forCreate
Type: 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
Type: System.String[]
A String array that specifies the expected object types.

Return Value

Type: System.String
A String value that specifies the text for scripting.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft