Table of Contents

Class NearbyTransferCanceledException

Namespace
Plugin.Maui.NearbyConnectivity
Assembly
Plugin.Maui.NearbyConnectivity.dll

The exception that is thrown when a file transfer is canceled by something other than the caller's CancellationToken: the other device canceled it, or the platform did.

public sealed class NearbyTransferCanceledException : NearbyTransferException, ISerializable
Inheritance
NearbyTransferCanceledException
Implements
Inherited Members

Remarks

The usual cause is the receiver calling CancelInboundTransferAsync(long). On Android, Google Play services also cancels unfinished transfers when the connection closes, so check IsOpen: if the connection is still open, the other device refused the file.

Constructors

NearbyTransferCanceledException(string)

Initializes a new instance of the NearbyTransferCanceledException class.

public NearbyTransferCanceledException(string message)

Parameters

message string

The error message that explains the reason for the exception.

NearbyTransferCanceledException(string, Exception)

Initializes a new instance of the NearbyTransferCanceledException class.

public NearbyTransferCanceledException(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception.

See Also