MonobjcMonobjc Documented Class Library
HasPrefix Method (aString)

Returns a Boolean value that indicates whether a given string matches the beginning characters of the receiver.

Original signature is '- (BOOL)hasPrefix:(NSString *)aString'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool HasPrefix(
	NSString aString
Public Overridable Function HasPrefix ( _
	aString As NSString _
) As Boolean
virtual bool HasPrefix(
	NSString^ aString
aString (NSString)
A string.
Return Value
YES if aString matches the beginning characters of the receiver, otherwise NO. Returns NO if aString is empty.
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)