ScriptNameObjectBase.CheckTextCorectness 方法

定义

根据参数检查文本的正确性。

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)

参数

ddlText
String

数据定义语言文本。

enforceCreate
Boolean

true即使目标不正确也强制创建否则为 false

checkName
Boolean

true检查名称;否则为 false

expectedObjectTypes
String[]

一个字符串数组,该数组指定预期的对象类型。

headerInfo
DdlTextParserHeaderInfo

标头信息。

适用于