Returns the maximum number of bytes needed to store the receiver in a given encoding.
Original signature is '- (NSUInteger)maximumLengthOfBytesUsingEncoding:(NSStringEncoding)enc'
Available in Mac OS X v10.4 and later.

C# | Visual Basic | Visual C++ |
public virtual NSUInteger MaximumLengthOfBytesUsingEncoding( NSStringEncoding enc )
Public Overridable Function MaximumLengthOfBytesUsingEncoding ( _ enc As NSStringEncoding _ ) As NSUInteger
public: virtual NSUInteger MaximumLengthOfBytesUsingEncoding( NSStringEncoding enc )

- enc (NSStringEncoding)
- The encoding for which to determine the receiver's length.

The maximum number of bytes needed to store the receiver in encoding in a non-external representation. The length does not include space for a terminating NULL character. Returns 0 if the amount of memory required for storing the results of the encoding conversion would exceed NSIntegerMax.

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