VCLanguageManager::ValidateFileName Method (String^, vsCMValidateFileExtension)

 

Determines if the specified file name is a valid C++ file name.

Namespace:   Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

bool ValidateFileName(
	String^ bstrFile,
	vsCMValidateFileExtension eFileType = vsCMValidateFileExtension::vsCMValidateFileExtCpp
)

Parameters

bstrFile
Type: System::String^

Required. The file name to be validated.

eFileType
Type: Microsoft.VisualStudio.VCCodeModel::vsCMValidateFileExtension

Optional. A vsCMValidateFileExtension value representing the valid file type.

Return Value

Type: System::Boolean

true if the specified file name is a valid C++ file name; otherwise, false.

Return to top
Show: