Creates and returns an array containing a given object.
Original signature is '+ (id)arrayWithObject:(id)anObject'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public static SBElementArray ArrayWithObject( Id anObject )
Public Shared Function ArrayWithObject ( _ anObject As Id _ ) As SBElementArray
public: static SBElementArray^ ArrayWithObject( Id^ anObject )

- anObject (Id)
- An object.

An array containing the single element anObject.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)