Export (0) Print
Expand All

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

Gets the text of script object.

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

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

Parameters

so
Type: Microsoft.SqlServer.Management.Smo.ScriptingOptions
A ScriptingOptions object.
forCreate
Type: System.Boolean
A Boolean value that specifies whether the script is used to create database objects.
expectedObjectTypes
Type: System.String[]
An array of strings that specify the expected object types.
forceCheckNameAndManipulateIfRequired
Type: System.Boolean
A Boolean value that specifies whether to check for correctness and modify if required.

Return Value

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

Community Additions

ADD
Show:
© 2014 Microsoft