共用方式為


ScriptNameObjectBase.CheckTextCorectness 方法

Checks text for correctness against the parameters.

命名空間:  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
    A string value that contains the data definition language text.
  • enforceCreate
    型別:System.Boolean
    A Boolean value that specifies whether to force creation even if target is incorrect.
  • checkName
    型別:System.Boolean
    A string value that specifies the expected name.
  • expectedObjectTypes
    型別:array<System.String[]
    An array of strings that specify the expected object types.

請參閱

參考

ScriptNameObjectBase 類別

Microsoft.SqlServer.Management.Smo 命名空間