MonobjcMonobjc Documented Class Library
InitWithCharactersLength Method (characters, length)
NamespacesMonobjc.FoundationNSStringInitWithCharactersLength(String, NSUInteger)

Returns an initialized NSString object that contains a given number of characters from a given C array of Unicode characters.

Original signature is '- (id)initWithCharacters:(const unichar *)characters length:(NSUInteger)length'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithCharactersLength(
	string characters,
	NSUInteger length
Public Overridable Function InitWithCharactersLength ( _
	characters As String, _
	length As NSUInteger _
) As Id
virtual Id^ InitWithCharactersLength(
	String^ characters, 
	NSUInteger length
characters (String)
A C array of Unicode characters; the value must not be NULL.
length (NSUInteger)
The number of characters to use from characters.
Return Value
An initialized NSString object containing length characters taken from characters. The returned object may be different from the original receiver.
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)