共用方式為


SessionLockLostEventArgs Class

Definition

This type represents the event args relating to the session lock lost event.

public class SessionLockLostEventArgs : EventArgs
type SessionLockLostEventArgs = class
    inherit EventArgs
Public Class SessionLockLostEventArgs
Inherits EventArgs
Inheritance
SessionLockLostEventArgs

Constructors

SessionLockLostEventArgs(ServiceBusReceivedMessage, DateTimeOffset, Exception)

Constructs a new SessionLockLostEventArgs instance.

Properties

Exception

Gets the exception, if any, which led to the event being raised. If the exception is null, then the event was raised due to the session lock expiring based on the SessionLockedUntil property.

Message

The message that was being processed when the session lock was lost.

SessionLockedUntil

The time that the session lock expires. If this time is still in the future, then the session lock was lost due to an exception being thrown which can be accessed via the Exception property.

Applies to