IVCWizCtlUI.DoesFileOrDirectoryExist(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定指定的文件或目录是否存在。
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
必需。 包含文件或目录名称的字符串。
返回
如果文件或目录存在,则为 true;否则为 false。
- 属性