TSqlParser.ValidateIdentifier 方法

返回某个名称是否为有效的 SQL 标识符。

命名空间:  Microsoft.Data.Schema.ScriptDom.Sql
程序集:  Microsoft.Data.Schema.ScriptDom.Sql(在 Microsoft.Data.Schema.ScriptDom.Sql.dll 中)

语法

声明
Public Function ValidateIdentifier ( _
    name As String _
) As Boolean
public bool ValidateIdentifier(
    string name
)
public:
bool ValidateIdentifier(
    String^ name
)
member ValidateIdentifier : 
        name:string -> bool 
public function ValidateIdentifier(
    name : String
) : boolean

参数

返回值

类型:System.Boolean
true 如果提供的名称是一个有效的 SQL 标识符 ; 否则为false。

.NET Framework 安全性

请参见

参考

TSqlParser 类

Microsoft.Data.Schema.ScriptDom.Sql 命名空间