共用方式為


QueueMessageDecodingFailedEventArgs Class

Definition

Contains information about message that could not be decoded. See also MessageDecodingFailed.

public class QueueMessageDecodingFailedEventArgs : Azure.SyncAsyncEventArgs
type QueueMessageDecodingFailedEventArgs = class
    inherit SyncAsyncEventArgs
Public Class QueueMessageDecodingFailedEventArgs
Inherits SyncAsyncEventArgs
Inheritance
QueueMessageDecodingFailedEventArgs

Constructors

QueueMessageDecodingFailedEventArgs(QueueClient, QueueMessage, PeekedMessage, Boolean, CancellationToken)

Initializes a new instance of the QueueMessageDecodingFailedEventArgs.

Properties

CancellationToken

Gets a cancellation token related to the original operation that raised the event. It's important for your handler to pass this token along to any asynchronous or long-running synchronous operations that take a token so cancellation (via something like

new CancellationTokenSource(TimeSpan.FromSeconds(10)).Token

for example) will correctly propagate.

(Inherited from SyncAsyncEventArgs)
IsRunningSynchronously

Gets a value indicating whether the event handler was invoked synchronously or asynchronously. Please see SyncAsyncEventHandler<T> for more details.

(Inherited from SyncAsyncEventArgs)
PeekedMessage

Gets the PeekedMessage that has been peeked and could not be decoded. The body of the message is as received, i.e. no decoding is attempted.

Queue

Gets the QueueClient that has received message.

ReceivedMessage

Gets the QueueMessage that has been received and could not be decoded. The body of the message is as received, i.e. no decoding is attempted.

Applies to