편집

다음을 통해 공유


MCSession.SendResourceAsync Method

Definition

Overloads

SendResourceAsync(NSUrl, String, MCPeerID)

Enqueues for delivery to peerID the resource at resourceUrl.

SendResourceAsync(NSUrl, String, MCPeerID, NSProgress)

Asynchronously enqueues for delivery to resourceName the resource at resourceUrl, returning a task that represents the operation.

SendResourceAsync(NSUrl, String, MCPeerID)

Enqueues for delivery to peerID the resource at resourceUrl.

public virtual System.Threading.Tasks.Task SendResourceAsync (Foundation.NSUrl resourceUrl, string resourceName, MultipeerConnectivity.MCPeerID peerID);
abstract member SendResourceAsync : Foundation.NSUrl * string * MultipeerConnectivity.MCPeerID -> System.Threading.Tasks.Task
override this.SendResourceAsync : Foundation.NSUrl * string * MultipeerConnectivity.MCPeerID -> System.Threading.Tasks.Task

Parameters

resourceUrl
NSUrl

The URL to the resource.

resourceName
String

The name of the resource.

peerID
MCPeerID

The ID of the receiving peer.

Returns

A task that represents the asynchronous SendResource operation

Applies to

SendResourceAsync(NSUrl, String, MCPeerID, NSProgress)

Asynchronously enqueues for delivery to resourceName the resource at resourceUrl, returning a task that represents the operation.

public virtual System.Threading.Tasks.Task SendResourceAsync (Foundation.NSUrl resourceUrl, string resourceName, MultipeerConnectivity.MCPeerID peerID, out Foundation.NSProgress result);
abstract member SendResourceAsync : Foundation.NSUrl * string * MultipeerConnectivity.MCPeerID *  -> System.Threading.Tasks.Task
override this.SendResourceAsync : Foundation.NSUrl * string * MultipeerConnectivity.MCPeerID *  -> System.Threading.Tasks.Task

Parameters

resourceUrl
NSUrl

The URL to the resource.

resourceName
String

The name of the resource.

peerID
MCPeerID

The ID of the receiving peer.

result
NSProgress

A progress result.

Returns

Applies to