Compartir a través de


VCLanguageManager.ValidateFileName Method

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.

Return Value

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

.NET Framework Security

See Also

Reference

VCLanguageManager Interface

Microsoft.VisualStudio.VCCodeModel Namespace