Creates and initializes an NSError object for a given domain and code with a given userInfo dictionary.
Original signature is '+ (id)errorWithDomain:(NSString *)domain code:(NSInteger)code userInfo:(NSDictionary *)dict'
Available in Mac OS X v10.2 with Safari 1.0 installed and later.

C# | Visual Basic | Visual C++ |
public static NSError ErrorWithDomainCodeUserInfo( NSString domain, NSInteger code, NSDictionary dict )
Public Shared Function ErrorWithDomainCodeUserInfo ( _ domain As NSString, _ code As NSInteger, _ dict As NSDictionary _ ) As NSError
public: static NSError^ ErrorWithDomainCodeUserInfo( NSString^ domain, NSInteger code, NSDictionary^ dict )

- domain (NSString)
- The error domain—this can be one of the predefined NSError domains, or an arbitrary string describing a custom domain. domain must not be nil.
- code (NSInteger)
- The error code for the error.
- dict (NSDictionary)
- The userInfo dictionary for the error. userInfo may be nil.

An NSError object for domain with the specified error code and the dictionary of arbitrary data userInfo.

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