MonobjcMonobjc Documented Class Library
NSMutableString Constructor (data, encoding)
NamespacesMonobjc.FoundationNSMutableStringNSMutableString(NSData, NSStringEncoding)

Returns an NSString object initialized by converting given data into Unicode characters using a given encoding.

Original signature is '- (id)initWithData:(NSData *)data encoding:(NSStringEncoding)encoding'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSMutableString(
	NSData data,
	NSStringEncoding encoding
Public Sub New ( _
	data As NSData, _
	encoding As NSStringEncoding _
	NSData^ data, 
	NSStringEncoding encoding
data (NSData)
An NSData object containing bytes in encoding and the default plain text format (that is, pure content with no attributes or other markups) for that encoding.
encoding (NSStringEncoding)
The encoding used by data.
Return Value
An NSString object initialized by converting the bytes in data into Unicode characters using encoding. The returned object may be different from the original receiver. Returns nil if the initialization fails for some reason (for example if data does not represent valid data for encoding).
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)