BarcodeScannerStartSoftwareTriggerRequest.ReportFailedAsync 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
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:
Name | Value | Description |
E_ABORT | 0x80004004 | Operation aborted |
E_ACCESSDENIED | 0x80070005 | General access denied error |
E_APPLICATION_EXITING | 0x8000001a | The application is exiting and cannot service this request |
E_BOUNDS | 0x8000000b | The operation attempted to access data outside the valid range |
E_ILLEGAL_METHOD_CALL | 0x8000000e | A method was called at an unexpected time |
E_INVALIDARG | 0x80070057 | One or more arguments are invalid |
E_FAIL | 0x80004005 | Unspecified error |
E_NOTIMPL | 0x80004001 | Not implemented |
E_OUTOFMEMORY | 0x8007000e | Ran 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:
Name | Value | Description |
E_ABORT | 0x80004004 | Operation aborted |
E_ACCESSDENIED | 0x80070005 | General access denied error |
E_APPLICATION_EXITING | 0x8000001a | The application is exiting and cannot service this request |
E_BOUNDS | 0x8000000b | The operation attempted to access data outside the valid range |
E_ILLEGAL_METHOD_CALL | 0x8000000e | A method was called at an unexpected time |
E_INVALIDARG | 0x80070057 | One or more arguments are invalid |
E_FAIL | 0x80004005 | Unspecified error |
E_NOTIMPL | 0x80004001 | Not implemented |
E_OUTOFMEMORY | 0x8007000e | Ran 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.