ScriptNameObjectBase.CheckTextCorectness Method

Definition

Checks text for correctness against the parameters.

protected:
 void CheckTextCorectness(System::String ^ ddlText, bool enforceCreate, bool checkName, cli::array <System::String ^> ^ expectedObjectTypes, [Runtime::InteropServices::Out] Microsoft::SqlServer::Management::Smo::DdlTextParserHeaderInfo % headerInfo);
protected void CheckTextCorectness (string ddlText, bool enforceCreate, bool checkName, string[] expectedObjectTypes, out Microsoft.SqlServer.Management.Smo.DdlTextParserHeaderInfo headerInfo);
member this.CheckTextCorectness : string * bool * bool * string[] * DdlTextParserHeaderInfo -> unit
Protected Sub CheckTextCorectness (ddlText As String, enforceCreate As Boolean, checkName As Boolean, expectedObjectTypes As String(), ByRef headerInfo As DdlTextParserHeaderInfo)

Parameters

ddlText
String

The data definition language text.

enforceCreate
Boolean

true to force creation even if target is incorrect; otherwise, false.

checkName
Boolean

true to check the name; otherwise, false.

expectedObjectTypes
String[]

An array of strings that specify the expected object types.

headerInfo
DdlTextParserHeaderInfo

The header information.

Applies to