Sdílet prostřednictvím


VCCodeModel.ValidateMemberName Method

Definition

Validates the name of an element.

public:
 bool ValidateMemberName(System::String ^ bstrName, EnvDTE::vsCMElement Kind, Microsoft::VisualStudio::VCCodeModel::vcCMNameValidationOption nvo);
public:
 bool ValidateMemberName(Platform::String ^ bstrName, EnvDTE::vsCMElement Kind, Microsoft::VisualStudio::VCCodeModel::vcCMNameValidationOption nvo);
bool ValidateMemberName(std::wstring const & bstrName, EnvDTE::vsCMElement Kind, Microsoft::VisualStudio::VCCodeModel::vcCMNameValidationOption nvo);
[System.Runtime.InteropServices.DispId(522)]
public bool ValidateMemberName (string bstrName, EnvDTE.vsCMElement Kind, Microsoft.VisualStudio.VCCodeModel.vcCMNameValidationOption nvo);
[<System.Runtime.InteropServices.DispId(522)>]
abstract member ValidateMemberName : string * EnvDTE.vsCMElement * Microsoft.VisualStudio.VCCodeModel.vcCMNameValidationOption -> bool
Public Function ValidateMemberName (bstrName As String, Kind As vsCMElement, nvo As vcCMNameValidationOption) As Boolean

Parameters

bstrName
String

The name.

Kind
vsCMElement

The kind of the element.

nvo
vcCMNameValidationOption

The way to do the validation.

Returns

true if the name is validated, otherwise false.

Attributes

Applies to