次の方法で共有


ScriptNameObjectBase.CheckTextCorectness メソッド

パラメーターに対してテキストの正確さを確認します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Protected Sub CheckTextCorectness ( _
    ddlText As String, _
    enforceCreate As Boolean, _
    checkName As Boolean, _
    expectedObjectTypes As String(), _
    <OutAttribute> ByRef headerInfo As DdlTextParserHeaderInfo _
)
'使用
Dim ddlText As String 
Dim enforceCreate As Boolean 
Dim checkName As Boolean 
Dim expectedObjectTypes As String()
Dim headerInfo As DdlTextParserHeaderInfo 

Me.CheckTextCorectness(ddlText, enforceCreate, _
    checkName, expectedObjectTypes, _
    headerInfo)
protected void CheckTextCorectness(
    string ddlText,
    bool enforceCreate,
    bool checkName,
    string[] expectedObjectTypes,
    out DdlTextParserHeaderInfo headerInfo
)
protected:
void CheckTextCorectness(
    String^ ddlText, 
    bool enforceCreate, 
    bool checkName, 
    array<String^>^ expectedObjectTypes, 
    [OutAttribute] DdlTextParserHeaderInfo% headerInfo
)
member CheckTextCorectness : 
        ddlText:string * 
        enforceCreate:bool * 
        checkName:bool * 
        expectedObjectTypes:string[] * 
        headerInfo:DdlTextParserHeaderInfo byref -> unit
protected function CheckTextCorectness(
    ddlText : String, 
    enforceCreate : boolean, 
    checkName : boolean, 
    expectedObjectTypes : String[], 
    headerInfo : DdlTextParserHeaderInfo
)

パラメーター

  • ddlText
    型: System.String
    データ定義言語のテキストを含む文字列値です。
  • enforceCreate
    型: System.Boolean
    ターゲットが正しくない場合でも作成を強制的に実行するかどうかを示すブール値です。
  • checkName
    型: System.Boolean
    予期される名前を示す文字列値です。
  • expectedObjectTypes
    型: array<System.String[]
    予期されるオブジェクトの種類を示す文字列の配列です。

関連項目

参照

ScriptNameObjectBase クラス

Microsoft.SqlServer.Management.Smo 名前空間