مشاركة عبر


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

'إقرار
Function ValidateFileName ( _
    bstrFile As String, _
    eFileType As vsCMValidateFileExtension _
) As Boolean
'الاستخدام
Dim instance As VCLanguageManager
Dim bstrFile As String
Dim eFileType As vsCMValidateFileExtension
Dim returnValue As Boolean

returnValue = instance.ValidateFileName(bstrFile, _
    eFileType)
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

VCLanguageManager Members

Microsoft.VisualStudio.VCCodeModel Namespace