Share via


TransferTargetInvokeResult.Succeeded Property

Definition

The Succeeded property indicates whether the transfer operation was successful. This property helps applications determine the outcome of invoking a transfer target.

public:
 property bool Succeeded { bool get(); };
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Windows.Foundation.Metadata.Experimental]
bool Succeeded();
[Windows.Foundation.Metadata.Experimental]
public bool Succeeded { [Windows.Foundation.Metadata.Experimental] get; }
var boolean = transferTargetInvokeResult.succeeded;
Public ReadOnly Property Succeeded As Boolean

Property Value

Boolean

bool

A bool value that is true if the transfer operation succeeded; otherwise, false.

Attributes

Examples

Example: Checking if a Transfer Operation Succeeded

if (result.Succeeded)
{
    Console.WriteLine("Transfer succeeded.");
}
else
{
    Console.WriteLine("Transfer failed.");
}

Remarks

The Succeeded property provides a simple way to check the result of a transfer operation. Applications can use this property to decide whether to proceed with further actions or handle errors.

Usage Notes:

  • If Succeeded is false, check the ExtendedError property for details about the failure.
  • Use this property to provide feedback to the user about the success or failure of the operation.

Applies to

See also