Sdílet prostřednictvím


VCWizCtlClass.DoesFileOrDirectoryExist Method

Determines whether the specified file or directory exists.

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

Syntax

'Declaration
Public Overridable Function DoesFileOrDirectoryExist ( _
    bstrFileOrDirName As String _
) As Boolean
'Usage
Dim instance As VCWizCtlClass
Dim bstrFileOrDirName As String
Dim returnValue As Boolean

returnValue = instance.DoesFileOrDirectoryExist(bstrFileOrDirName)
public virtual bool DoesFileOrDirectoryExist(
    string bstrFileOrDirName
)
public:
virtual bool DoesFileOrDirectoryExist(
    [InAttribute] String^ bstrFileOrDirName
)
public function DoesFileOrDirectoryExist(
    bstrFileOrDirName : String
) : boolean

Parameters

  • bstrFileOrDirName
    Type: System.String

    Required. A string containing the name of the file.

Return Value

Type: System.Boolean

true if the file or directory exists; otherwise, false.

Implements

IVCWizCtlUI.DoesFileOrDirectoryExist(String)

Permissions

See Also

Reference

VCWizCtlClass Class

VCWizCtlClass Members

Microsoft.VisualStudio.VsWizard Namespace