MonobjcMonobjc Documented Class Library
CStringUsingEncoding Method (encoding)

Returns a representation of the receiver as a C string using a given encoding.

Original signature is '- (const char *)cStringUsingEncoding:(NSStringEncoding)encoding'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual IntPtr CStringUsingEncoding(
	NSStringEncoding encoding
Public Overridable Function CStringUsingEncoding ( _
	encoding As NSStringEncoding _
) As IntPtr
virtual IntPtr CStringUsingEncoding(
	NSStringEncoding encoding
encoding (NSStringEncoding)
The encoding for the returned C string.
Return Value
A C string representation of the receiver using the encoding specified by encoding. Returns NULL if the receiver cannot be losslessly converted to 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)