VCLanguageManager::ValidateFileName Method (String^, vsCMValidateFileExtension)
Visual Studio 2015
Determines if the specified file name is a valid C++ file name.
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::Booleantrue if the specified file name is a valid C++ file name; otherwise, false.
Show: