共用方式為


NSFileManager.GetDirectoryContent 方法

定義

多載

GetDirectoryContent(String, NSError)
GetDirectoryContent(NSUrl, NSArray, NSDirectoryEnumerationOptions, NSError)

GetDirectoryContent(String, NSError)

[Foundation.Export("contentsOfDirectoryAtPath:error:")]
public virtual string[] GetDirectoryContent (string path, out Foundation.NSError error);
abstract member GetDirectoryContent : string *  -> string[]
override this.GetDirectoryContent : string *  -> string[]

參數

path
String
error
NSError

傳回

String[]
屬性

適用於

GetDirectoryContent(NSUrl, NSArray, NSDirectoryEnumerationOptions, NSError)

[Foundation.Export("contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:")]
public virtual Foundation.NSUrl[] GetDirectoryContent (Foundation.NSUrl url, Foundation.NSArray properties, Foundation.NSDirectoryEnumerationOptions options, out Foundation.NSError error);
abstract member GetDirectoryContent : Foundation.NSUrl * Foundation.NSArray * Foundation.NSDirectoryEnumerationOptions *  -> Foundation.NSUrl[]
override this.GetDirectoryContent : Foundation.NSUrl * Foundation.NSArray * Foundation.NSDirectoryEnumerationOptions *  -> Foundation.NSUrl[]

參數

url
NSUrl
properties
NSArray

即將加入。

這個參數可以是 null

error
NSError

傳回

NSUrl[]
屬性

適用於