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
傳回
- 屬性