Share via


NSNotification.FromName 方法

定义

重载

FromName(String, NSObject)

使用名称和对象有效负载创建新的 NSNotification。

FromName(String, NSObject, NSDictionary)

使用名称、对象和字典有效负载创建新的 NSNotification。

FromName(String, NSObject)

使用名称和对象有效负载创建新的 NSNotification。

[Foundation.Export("notificationWithName:object:")]
public static Foundation.NSNotification FromName (string name, Foundation.NSObject obj);
static member FromName : string * Foundation.NSObject -> Foundation.NSNotification

参数

name
String

通知的名称。

obj
NSObject

要携带的对象数据。

此参数可以为 null

返回

属性

适用于

FromName(String, NSObject, NSDictionary)

使用名称、对象和字典有效负载创建新的 NSNotification。

[Foundation.Export("notificationWithName:object:userInfo:")]
public static Foundation.NSNotification FromName (string name, Foundation.NSObject obj, Foundation.NSDictionary userInfo);
static member FromName : string * Foundation.NSObject * Foundation.NSDictionary -> Foundation.NSNotification

参数

name
String

通知的名称。

obj
NSObject

要携带的对象数据。

此参数可以为 null

userInfo
NSDictionary

包含额外信息的字典。

此参数可以为 null

返回

属性

适用于