Returns whether a name is a valid CLR identifier.
Namespace: Microsoft.VisualStudio.VsWizard
Assembly: Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)
Syntax
声明
Function ValidateCLRIdentifier ( _
bstrName As String, _
bReportError As Boolean _
) As Boolean
用法
Dim instance As IVCWizCtlUI
Dim bstrName As String
Dim bReportError As Boolean
Dim returnValue As Boolean
returnValue = instance.ValidateCLRIdentifier(bstrName, _
bReportError)
bool ValidateCLRIdentifier(
string bstrName,
bool bReportError
)
bool ValidateCLRIdentifier(
[InAttribute] String^ bstrName,
[InAttribute] bool bReportError
)
function ValidateCLRIdentifier(
bstrName : String,
bReportError : boolean
) : boolean
Parameters
bstrName
Type: System.StringName to test.
bReportError
Type: System.BooleanSet to true to report an error.
Return Value
Type: System.Boolean
True if the name is a valid CLR identifier.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.