Delen via


ServiceBusReceivedMessage.ExpiresAt Property

Definition

Gets the date and time in UTC at which the message is set to expire.

public DateTimeOffset ExpiresAt { get; }
member this.ExpiresAt : DateTimeOffset
Public ReadOnly Property ExpiresAt As DateTimeOffset

Property Value

The message expiration time in UTC. This property is read-only.

Exceptions

If the message has not been received. For example if a new message was created but not yet sent and received.

Remarks

The UTC instant at which the message is marked for removal and no longer available for retrieval from the entity due to expiration. Expiry is controlled by the TimeToLive property and this property is computed from EnqueuedTime+TimeToLive

Applies to