MonobjcMonobjc Documented Class Library
DataUsingEncoding Method (encoding)

Returns an NSData object containing a representation of the receiver encoded using a given encoding.

Original signature is '- (NSData *)dataUsingEncoding:(NSStringEncoding)encoding'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSData DataUsingEncoding(
	NSStringEncoding encoding
Public Overridable Function DataUsingEncoding ( _
	encoding As NSStringEncoding _
) As NSData
virtual NSData^ DataUsingEncoding(
	NSStringEncoding encoding
encoding (NSStringEncoding)
A string encoding.
Return Value
The result of invoking dataUsingEncoding:allowLossyConversion: with NO as the second argument (that is, requiring lossless conversion).
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)