共用方式為


TSqlParser.ValidateIdentifier 方法

Returns whether a name is a valid SQL identifier.

命名空間:  Microsoft.SqlServer.TransactSql.ScriptDom
組件:  Microsoft.SqlServer.TransactSql.ScriptDom (在 Microsoft.SqlServer.TransactSql.ScriptDom.dll 中)

語法

'宣告
Public Function ValidateIdentifier ( _
    name As String _
) As Boolean
'用途
Dim instance As TSqlParser 
Dim name As String 
Dim returnValue As Boolean 

returnValue = instance.ValidateIdentifier(name)
public bool ValidateIdentifier(
    string name
)
public:
bool ValidateIdentifier(
    String^ name
)
member ValidateIdentifier : 
        name:string -> bool
public function ValidateIdentifier(
    name : String
) : boolean

參數

傳回值

型別:System.Boolean
true if the provided name is a valid SQL identifier; otherwise, false.

請參閱

參考

TSqlParser 類別

Microsoft.SqlServer.TransactSql.ScriptDom 命名空間