Share via


BarcodeScannerStartSoftwareTriggerRequest.ReportFailedAsync Method

Definition

Overloads

ReportFailedAsync()

Notifies the client that the request was not processed successfully.

ReportFailedAsync(Int32)

Notifies the client that the request was not processed successfully.

ReportFailedAsync(Int32, String)

Notifies the client that the request was not processed successfully.

ReportFailedAsync()

Notifies the client that the request was not processed successfully.

public:
 virtual IAsyncAction ^ ReportFailedAsync() = ReportFailedAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ReportFailedAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ReportFailedAsync();
function reportFailedAsync()
Public Function ReportFailedAsync () As IAsyncAction

Returns

An asynchronous object.

Attributes

Remarks

This method should be called if the provider app is unable to complete the operation.

Applies to

ReportFailedAsync(Int32)

Notifies the client that the request was not processed successfully.

public:
 virtual IAsyncAction ^ ReportFailedAsync(int reason) = ReportFailedAsync;
/// [Windows.Foundation.Metadata.Overload("ReportFailedWithFailedReasonAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ReportFailedAsync(int const& reason);
[Windows.Foundation.Metadata.Overload("ReportFailedWithFailedReasonAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ReportFailedAsync(int reason);
function reportFailedAsync(reason)
Public Function ReportFailedAsync (reason As Integer) As IAsyncAction

Parameters

reason
Int32

int

An Int32 error code that will be converted to an HRESULT and raised as an exception in the calling application. The following values are supported:

NameValueDescription
E_ABORT0x80004004Operation aborted
E_ACCESSDENIED0x80070005General access denied error
E_APPLICATION_EXITING0x8000001aThe application is exiting and cannot service this request
E_BOUNDS0x8000000bThe operation attempted to access data outside the valid range
E_ILLEGAL_METHOD_CALL0x8000000eA method was called at an unexpected time
E_INVALIDARG0x80070057One or more arguments are invalid
E_FAIL0x80004005Unspecified error
E_NOTIMPL0x80004001Not implemented
E_OUTOFMEMORY0x8007000eRan out of memory

Returns

An asynchronous operation.

Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

This method should be called if the provider app is unable to complete the operation.

Applies to

ReportFailedAsync(Int32, String)

Notifies the client that the request was not processed successfully.

public:
 virtual IAsyncAction ^ ReportFailedAsync(int reason, Platform::String ^ failedReasonDescription) = ReportFailedAsync;
/// [Windows.Foundation.Metadata.Overload("ReportFailedWithFailedReasonAndDescriptionAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ReportFailedAsync(int const& reason, winrt::hstring const& failedReasonDescription);
[Windows.Foundation.Metadata.Overload("ReportFailedWithFailedReasonAndDescriptionAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ReportFailedAsync(int reason, string failedReasonDescription);
function reportFailedAsync(reason, failedReasonDescription)
Public Function ReportFailedAsync (reason As Integer, failedReasonDescription As String) As IAsyncAction

Parameters

reason
Int32

int

An Int32 error code that will be converted to an HRESULT and raised as an exception in the calling application. The following values are supported:

NameValueDescription
E_ABORT0x80004004Operation aborted
E_ACCESSDENIED0x80070005General access denied error
E_APPLICATION_EXITING0x8000001aThe application is exiting and cannot service this request
E_BOUNDS0x8000000bThe operation attempted to access data outside the valid range
E_ILLEGAL_METHOD_CALL0x8000000eA method was called at an unexpected time
E_INVALIDARG0x80070057One or more arguments are invalid
E_FAIL0x80004005Unspecified error
E_NOTIMPL0x80004001Not implemented
E_OUTOFMEMORY0x8007000eRan out of memory
failedReasonDescription
String

Platform::String

winrt::hstring

A description of what caused the failure, for use in debugging.

Returns

An asynchronous operation.

Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

This method should be called if the provider app is unable to complete the operation.

Applies to