Returns a string created by reading data from a given URL and returns by reference the encoding used to interpret the data.
Original signature is '+ (id)stringWithContentsOfURL:(NSURL *)url usedEncoding:(NSStringEncoding *)enc error:(NSError **)error'
Available in Mac OS X v10.4 and later.

C# | Visual Basic | Visual C++ |
public static NSString StringWithContentsOfURLUsedEncodingError( NSURL url, out NSStringEncoding enc, out NSError error )
Public Shared Function StringWithContentsOfURLUsedEncodingError ( _ url As NSURL, _ <OutAttribute> ByRef enc As NSStringEncoding, _ <OutAttribute> ByRef error As NSError _ ) As NSString
public: static NSString^ StringWithContentsOfURLUsedEncodingError( NSURL^ url, [OutAttribute] NSStringEncoding% enc, [OutAttribute] NSError^% error )

- url (NSURL)
- The URL from which to read data.
- enc (NSStringEncoding%)
- Upon return, if url is read successfully, contains the encoding used to interpret the data.
- error (NSError%)
- If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.

A string created by reading data from url. If the URL can’t be opened or there is an encoding error, returns nil.

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