NSData.Save 方法

定义

重载

Save(String, Boolean, NSError)
Save(String, NSDataWritingOptions, NSError)
Save(NSUrl, Boolean, NSError)
Save(NSUrl, Boolean)
Save(String, Boolean)
Save(NSUrl, NSDataWritingOptions, NSError)

Save(String, Boolean, NSError)

public bool Save (string file, bool auxiliaryFile, out Foundation.NSError error);
member this.Save : string * bool *  -> bool

参数

file
String
auxiliaryFile
Boolean
error
NSError

返回

适用于

Save(String, NSDataWritingOptions, NSError)

public bool Save (string file, Foundation.NSDataWritingOptions options, out Foundation.NSError error);
member this.Save : string * Foundation.NSDataWritingOptions *  -> bool

参数

file
String
error
NSError

返回

适用于

Save(NSUrl, Boolean, NSError)

public bool Save (Foundation.NSUrl url, bool auxiliaryFile, out Foundation.NSError error);
member this.Save : Foundation.NSUrl * bool *  -> bool

参数

url
NSUrl
auxiliaryFile
Boolean
error
NSError

返回

适用于

Save(NSUrl, Boolean)

[Foundation.Export("writeToURL:atomically:")]
public virtual bool Save (Foundation.NSUrl url, bool atomically);
abstract member Save : Foundation.NSUrl * bool -> bool
override this.Save : Foundation.NSUrl * bool -> bool

参数

url
NSUrl
atomically
Boolean

返回

属性

适用于

Save(String, Boolean)

[Foundation.Export("writeToFile:atomically:")]
public virtual bool Save (string path, bool atomically);
abstract member Save : string * bool -> bool
override this.Save : string * bool -> bool

参数

path
String
atomically
Boolean

返回

属性

适用于

Save(NSUrl, NSDataWritingOptions, NSError)

public bool Save (Foundation.NSUrl url, Foundation.NSDataWritingOptions options, out Foundation.NSError error);
member this.Save : Foundation.NSUrl * Foundation.NSDataWritingOptions *  -> bool

参数

url
NSUrl
error
NSError

返回

适用于