Lease Lease Lease Lease Lease Class


Contains partition ownership information.

public ref class Lease
class Lease
public class Lease
type Lease = class
Public Class Lease


Lease() Lease() Lease() Lease() Lease()

Initializes a new instance of the Lease class.

Lease(Lease) Lease(Lease) Lease(Lease) Lease(Lease) Lease(Lease)

Initializes a new instance of the Lease class with the specified Microsoft.ServiceBus.Messaging.Lease. value as reference.


Epoch Epoch Epoch Epoch Epoch

Gets or sets the epoch year of the lease, which is a value you can use to determine the most recent owner of a partition between competing nodes.

Offset Offset Offset Offset Offset

Gets or sets the current value for the offset in the stream.

Owner Owner Owner Owner Owner

Gets or sets the host owner for the partition.

PartitionId PartitionId PartitionId PartitionId PartitionId

Gets the ID of the partition to which this lease belongs.

SequenceNumber SequenceNumber SequenceNumber SequenceNumber SequenceNumber

Gets or sets the last checkpointed sequence number in the stream.

Token Token Token Token Token

Gets or sets the lease token that manages concurrency between hosts. You can use this token to guarantee single access to any resource needed by the IEventProcessor object.


Equals(Object) Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether this instance is equal to the specified object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns the hash code of the current instance.

IsExpired() IsExpired() IsExpired() IsExpired() IsExpired()

Determines whether the lease is expired.

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to