NSString.FromData(NSData, NSStringEncoding) NSString.FromData(NSData, NSStringEncoding) Method

Definition

Creates an NSString from an NSData source.

public static Foundation.NSString FromData (Foundation.NSData data, Foundation.NSStringEncoding encoding);
static member FromData : Foundation.NSData * Foundation.NSStringEncoding -> Foundation.NSString

Parameters

data
NSData NSData

The byte buffer.

encoding
NSStringEncoding NSStringEncoding

Use this encoding to intepret the byte buffer.

Returns

An NSString created by parsing the byte buffer using the specified encoding.

Applies to