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 命名空间