Share via


MSConversation.InsertAttachmentAsync(NSUrl, String) Method

Definition

Asynchronously inserts the media in the file url, describing it in the message as filename.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task InsertAttachmentAsync(Foundation.NSUrl url, string? filename);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member InsertAttachmentAsync : Foundation.NSUrl * string -> System.Threading.Tasks.Task
override this.InsertAttachmentAsync : Foundation.NSUrl * string -> System.Threading.Tasks.Task

Parameters

url
NSUrl

Must be a file URL.

filename
String

Returns

A task that represents the asynchronous InsertAttachment operation

Attributes

Applies to