NSFileManager.GetDirectoryContent 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 |
|---|---|
| GetDirectoryContent(NSUrl, NSArray, NSDirectoryEnumerationOptions, NSError) | |
| GetDirectoryContent(String, NSError) |
GetDirectoryContent(NSUrl, NSArray, NSDirectoryEnumerationOptions, NSError)
[Foundation.Export("contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSUrl[] GetDirectoryContent(Foundation.NSUrl url, Foundation.NSArray? properties, Foundation.NSDirectoryEnumerationOptions options, out Foundation.NSError error);
[<Foundation.Export("contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetDirectoryContent : Foundation.NSUrl * Foundation.NSArray * Foundation.NSDirectoryEnumerationOptions * NSError -> Foundation.NSUrl[]
override this.GetDirectoryContent : Foundation.NSUrl * Foundation.NSArray * Foundation.NSDirectoryEnumerationOptions * NSError -> Foundation.NSUrl[]
Parameters
- url
- NSUrl
- properties
- NSArray
- options
- NSDirectoryEnumerationOptions
- error
- NSError
Returns
NSUrl[]
- Attributes
Applies to
GetDirectoryContent(String, NSError)
[Foundation.Export("contentsOfDirectoryAtPath:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual string[] GetDirectoryContent(string path, out Foundation.NSError error);
[<Foundation.Export("contentsOfDirectoryAtPath:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetDirectoryContent : string * NSError -> string[]
override this.GetDirectoryContent : string * NSError -> string[]
Parameters
- path
- String
- error
- NSError
Returns
String[]
- Attributes