TransferTargetInvokeResult.Succeeded Property
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.
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
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
Succeededisfalse, check theExtendedErrorproperty for details about the failure. - Use this property to provide feedback to the user about the success or failure of the operation.