NSFileManager.CreateDirectory 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
- 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
- error
- NSError
返回
- 属性