Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Function ValidateFileName ( _
bstrFile As String, _
eFileType As vsCMValidateFileExtension _
) As Boolean
bool ValidateFileName(
string bstrFile,
vsCMValidateFileExtension eFileType
)
bool ValidateFileName(
[InAttribute] String^ bstrFile,
[InAttribute] vsCMValidateFileExtension eFileType
)
abstract ValidateFileName :
bstrFile:string *
eFileType:vsCMValidateFileExtension -> bool
function ValidateFileName(
bstrFile : String,
eFileType : vsCMValidateFileExtension
) : boolean
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.
.NET Framework Security
- 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.