INSendMessageIntentHandling_Extensions.ResolveRecipients 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ResolveRecipients(IINSendMessageIntentHandling, INSendMessageIntent, Action<INPersonResolutionResult[]>)
开发人员可以实现此方法来自定义邮件收件人的解析。
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'ResolveRecipients (INSendMessageIntent, Action<INSendMessageRecipientResolutionResult []>)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'ResolveRecipients (INSendMessageIntent, Action<INSendMessageRecipientResolutionResult []>)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.None, "Use 'ResolveRecipients (INSendMessageIntent, Action<INSendMessageRecipientResolutionResult []>)' instead.")]
public static void ResolveRecipients (this Intents.IINSendMessageIntentHandling This, Intents.INSendMessageIntent intent, Action<Intents.INPersonResolutionResult[]> completion);
static member ResolveRecipients : Intents.IINSendMessageIntentHandling * Intents.INSendMessageIntent * Action<Intents.INPersonResolutionResult[]> -> unit
参数
此方法在其上运行的实例。
- intent
- INSendMessageIntent
指定用户的意图。
- completion
- Action<INPersonResolutionResult[]>
必须由替代调用的完成方法。
- 属性
适用于
ResolveRecipients(IINSendMessageIntentHandling, INSendMessageIntent, Action<INSendMessageRecipientResolutionResult[]>)
开发人员可以实现此方法来自定义邮件收件人的解析。
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public static void ResolveRecipients (this Intents.IINSendMessageIntentHandling This, Intents.INSendMessageIntent intent, Action<Intents.INSendMessageRecipientResolutionResult[]> completion);
static member ResolveRecipients : Intents.IINSendMessageIntentHandling * Intents.INSendMessageIntent * Action<Intents.INSendMessageRecipientResolutionResult[]> -> unit
参数
此方法在其上运行的实例。
- intent
- INSendMessageIntent
指定用户的意图。
- completion
- Action<INSendMessageRecipientResolutionResult[]>
必须由替代调用的完成方法。
- 属性