MCSession.SendResourceAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SendResourceAsync(NSUrl, String, MCPeerID) |
Enqueues for delivery to |
SendResourceAsync(NSUrl, String, MCPeerID, NSProgress) |
Asynchronously enqueues for delivery to |
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.