返回某个名称是否为有效的 CLR 标识符。
命名空间:  Microsoft.VisualStudio.VsWizard
程序集:  Microsoft.VisualStudio.VsWizard(在 Microsoft.VisualStudio.VsWizard.dll 中)
语法
声明
Function ValidateCLRIdentifier ( _
    bstrName As String, _
    bReportError As Boolean _
) As Boolean
bool ValidateCLRIdentifier(
    string bstrName,
    bool bReportError
)
bool ValidateCLRIdentifier(
    [InAttribute] String^ bstrName, 
    [InAttribute] bool bReportError
)
abstract ValidateCLRIdentifier : 
        bstrName:string * 
        bReportError:bool -> bool 
function ValidateCLRIdentifier(
    bstrName : String, 
    bReportError : boolean
) : boolean
参数
- bstrName
类型:System.String
要测试的名称。 
- bReportError
类型:System.Boolean
设置为 true 将报告错误。 
返回值
类型:System.Boolean
如果名称为有效 CLR 标识符,则为 true。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。