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

返回

属性

适用于