NSError.FromDomain 方法

定义

重载

FromDomain(NSString, nint)

从给定域和代码创建 NSError 实例。

FromDomain(NSString, nint, NSDictionary)

FromDomain(NSString, nint)

从给定域和代码创建 NSError 实例。

public static Foundation.NSError FromDomain (Foundation.NSString domain, nint code);
static member FromDomain : Foundation.NSString * nint -> Foundation.NSError

参数

domain
NSString
code
System.System.IntPtr System.nativeint

返回

适用于

FromDomain(NSString, nint, NSDictionary)

[Foundation.Export("errorWithDomain:code:userInfo:")]
public static Foundation.NSError FromDomain (Foundation.NSString domain, nint code, Foundation.NSDictionary userInfo);
static member FromDomain : Foundation.NSString * nint * Foundation.NSDictionary -> Foundation.NSError

参数

domain
NSString
code
System.System.IntPtr System.nativeint
userInfo
NSDictionary

内容待定。

此参数可以为 null

返回

属性

适用于