Düzenle

Aracılığıyla paylaş


NSData.FromString Method

Definition

Overloads

FromString(String, NSStringEncoding)

Creates an NSData for a C# string, the string is encoded using the specified encoding.

FromString(String)

Creates an NSData for a C# string, the string is encoded in UTF8.

FromString(String, NSStringEncoding)

Creates an NSData for a C# string, the string is encoded using the specified encoding.

public static Foundation.NSData FromString (string s, Foundation.NSStringEncoding encoding);
static member FromString : string * Foundation.NSStringEncoding -> Foundation.NSData

Parameters

s
String

String to wrap.

encoding
NSStringEncoding

Encoding to use.

Returns

Newly creates NSData.

Applies to

FromString(String)

Creates an NSData for a C# string, the string is encoded in UTF8.

public static Foundation.NSData FromString (string s);
static member FromString : string -> Foundation.NSData

Parameters

s
String

String to wrap.

Returns

Newly creates NSData.

Applies to