共用方式為


NSFileManager.CreateDirectory 方法

定義

多載

CreateDirectory(String, Boolean, NSFileAttributes, NSError)
CreateDirectory(String, Boolean, NSDictionary, NSError)
CreateDirectory(String, Boolean, NSFileAttributes)
CreateDirectory(NSUrl, Boolean, NSDictionary, NSError)

建立指定目錄的嘗試,並傳回成功或失敗。

CreateDirectory(String, Boolean, NSFileAttributes, NSError)

public bool CreateDirectory (string path, bool createIntermediates, Foundation.NSFileAttributes attributes, out Foundation.NSError error);
member this.CreateDirectory : string * bool * Foundation.NSFileAttributes *  -> bool

參數

path
String
createIntermediates
Boolean
attributes
NSFileAttributes
error
NSError

傳回

適用於

CreateDirectory(String, Boolean, NSDictionary, NSError)

[Foundation.Export("createDirectoryAtPath:withIntermediateDirectories:attributes:error:")]
public virtual bool CreateDirectory (string path, bool createIntermediates, Foundation.NSDictionary attributes, out Foundation.NSError error);
abstract member CreateDirectory : string * bool * Foundation.NSDictionary *  -> bool
override this.CreateDirectory : string * bool * Foundation.NSDictionary *  -> bool

參數

path
String
createIntermediates
Boolean
attributes
NSDictionary

即將加入。

這個參數可以是 null

error
NSError

傳回

屬性

適用於

CreateDirectory(String, Boolean, NSFileAttributes)

public bool CreateDirectory (string path, bool createIntermediates, Foundation.NSFileAttributes attributes);
member this.CreateDirectory : string * bool * Foundation.NSFileAttributes -> bool

參數

path
String
createIntermediates
Boolean
attributes
NSFileAttributes

傳回

適用於

CreateDirectory(NSUrl, Boolean, NSDictionary, NSError)

建立指定目錄的嘗試,並傳回成功或失敗。

[Foundation.Export("createDirectoryAtURL:withIntermediateDirectories:attributes:error:")]
public virtual bool CreateDirectory (Foundation.NSUrl url, bool createIntermediates, Foundation.NSDictionary attributes, out Foundation.NSError error);
abstract member CreateDirectory : Foundation.NSUrl * bool * Foundation.NSDictionary *  -> bool
override this.CreateDirectory : Foundation.NSUrl * bool * Foundation.NSDictionary *  -> bool

參數

url
NSUrl
createIntermediates
Boolean
attributes
NSDictionary

即將加入。

這個參數可以是 null

error
NSError

傳回

屬性

適用於