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

標頭資訊。

適用於