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

標頭資訊。

適用於