IVCWizCtlUI.ValidateCLRIdentifier 方法

返回某个名称是否为有效的 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
    类型:String

    要测试的名称。

  • bReportError
    类型:Boolean

    设置为 true 将报告错误。

返回值

类型:Boolean
如果名称为有效 CLR 标识符,则为 true。

.NET Framework 安全性

请参阅

参考

IVCWizCtlUI 接口

Microsoft.VisualStudio.VsWizard 命名空间