IVCWizCtlUI.ValidateCLRIdentifier(String, Boolean) 方法

定义

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

bool ValidateCLRIdentifier(std::wstring const & bstrName, bool bReportError = true);
[System.Runtime.InteropServices.DispId(1610743860)]
public bool ValidateCLRIdentifier (string bstrName, bool bReportError = true);
[<System.Runtime.InteropServices.DispId(1610743860)>]
abstract member ValidateCLRIdentifier : string * bool -> bool
Public Function ValidateCLRIdentifier (bstrName As String, Optional bReportError As Boolean = true) As Boolean

参数

bstrName
String

要测试的名称。

bReportError
Boolean

设置为 true 将报告错误。

返回

Boolean

如果名称为有效 CLR 标识符,则为 true。

属性

适用于