UNNotificationAttachment.FromIdentifier Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
FromIdentifier(String, NSUrl, NSDictionary, NSError) |
Создает и возвращает новое вложение уведомления с указанными |
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
- attachmentOptions
- UNNotificationAttachmentOptions
- error
- NSError