NSData.FromString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.