Поделиться через


UNNotificationAttachment.FromIdentifier Метод

Определение

Перегрузки

FromIdentifier(String, NSUrl, NSDictionary, NSError)

Создает и возвращает новое вложение уведомления с указанными identifier, url, optionsи options.

FromIdentifier(String, NSUrl, UNNotificationAttachmentOptions, NSError)

FromIdentifier(String, NSUrl, NSDictionary, NSError)

Создает и возвращает новое вложение уведомления с указанными identifier, url, optionsи options.

[Foundation.Export("attachmentWithIdentifier:URL:options:error:")]
public static UserNotifications.UNNotificationAttachment FromIdentifier (string identifier, Foundation.NSUrl url, Foundation.NSDictionary options, out Foundation.NSError error);
static member FromIdentifier : string * Foundation.NSUrl * Foundation.NSDictionary *  -> UserNotifications.UNNotificationAttachment

Параметры

identifier
String

Уникальный идентификатор вложения.

url
NSUrl

Расположение вложения.

options
NSDictionary

Словарь параметров вложения, таких как вырезка прямоугольников, номера кадров анимации и т. д.

Этот параметр может иметь значение null.

error
NSError

Расположение, в которое будут записываться ошибки.

Этот параметр может иметь значение null.

Возвращаемое значение

Новый вложения уведомлений.

Атрибуты

Применяется к

FromIdentifier(String, NSUrl, UNNotificationAttachmentOptions, NSError)

public static UserNotifications.UNNotificationAttachment FromIdentifier (string identifier, Foundation.NSUrl url, UserNotifications.UNNotificationAttachmentOptions attachmentOptions, out Foundation.NSError error);
static member FromIdentifier : string * Foundation.NSUrl * UserNotifications.UNNotificationAttachmentOptions *  -> UserNotifications.UNNotificationAttachment

Параметры

identifier
String
url
NSUrl
error
NSError

Возвращаемое значение

Применяется к