IVCWizCtlUI.DoesFileOrDirectoryExist(String) 方法

定义

确定指定的文件或目录是否存在。

public:
 bool DoesFileOrDirectoryExist(System::String ^ bstrFileOrDirName);
public:
 bool DoesFileOrDirectoryExist(Platform::String ^ bstrFileOrDirName);
bool DoesFileOrDirectoryExist(std::wstring const & bstrFileOrDirName);
[System.Runtime.InteropServices.DispId(1610743894)]
public bool DoesFileOrDirectoryExist (string bstrFileOrDirName);
[<System.Runtime.InteropServices.DispId(1610743894)>]
abstract member DoesFileOrDirectoryExist : string -> bool
Public Function DoesFileOrDirectoryExist (bstrFileOrDirName As String) As Boolean

参数

bstrFileOrDirName
String

必需。 包含文件或目录名称的字符串。

返回

Boolean

如果文件或目录存在,则为 true;否则为 false

属性

适用于