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
参数
- name
类型:System.String
要验证的字符串
返回值
类型:System.Boolean
true 如果提供的名称是一个有效的 SQL 标识符 ; 否则为false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。