NSFileManager.FileExists Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| FileExists(String) | |
| FileExists(String, Boolean) |
FileExists(String)
[Foundation.Export("fileExistsAtPath:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool FileExists(string path);
[<Foundation.Export("fileExistsAtPath:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member FileExists : string -> bool
override this.FileExists : string -> bool
Parameters
- path
- String
Returns
- Attributes
Applies to
FileExists(String, Boolean)
[Foundation.Export("fileExistsAtPath:isDirectory:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool FileExists(string path, ref bool isDirectory);
[<Foundation.Export("fileExistsAtPath:isDirectory:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member FileExists : string * bool -> bool
override this.FileExists : string * bool -> bool
Parameters
- path
- String
- isDirectory
- Boolean
Returns
- Attributes