NSData.FromUrl Method

Definition

Overloads

FromUrl(NSUrl)

Cretes an NSData with the contents in the specified url.

FromUrl(NSUrl, NSDataReadingOptions, NSError)

Cretes an NSData with the contents in the specified url.

FromUrl(NSUrl)

Cretes an NSData with the contents in the specified url.

[Foundation.Export("dataWithContentsOfURL:")]
public static Foundation.NSData FromUrl (Foundation.NSUrl url);
static member FromUrl : Foundation.NSUrl -> Foundation.NSData

Parameters

url
NSUrl

Url pointing to the resource to load into NSData.

Returns

Newly creates NSData, or null on error.

Attributes

Applies to

FromUrl(NSUrl, NSDataReadingOptions, NSError)

Cretes an NSData with the contents in the specified url.

[Foundation.Export("dataWithContentsOfURL:options:error:")]
public static Foundation.NSData FromUrl (Foundation.NSUrl url, Foundation.NSDataReadingOptions mask, out Foundation.NSError error);
static member FromUrl : Foundation.NSUrl * Foundation.NSDataReadingOptions *  -> Foundation.NSData

Parameters

url
NSUrl

Url pointing to the resource to load into NSData.

mask
NSDataReadingOptions

Options can be used to control the file loading, can be used to force the file to be mapped into the VM, instead of loaded by reading the contents.

error
NSError

Returns the error on failure.

Returns

Newly creates NSData, or null on error.

Attributes

Applies to