Access​Condition Class

Definition

Represents a set of access conditions to be used for operations against the storage services.

public sealed class AccessCondition
Inheritance
AccessCondition

Constructors

Access​Condition()

Properties

If​Append​Position​Equal

Gets or sets a value for a condition specifying the byte offset to check for when committing a block to an append blob. The append will succeed only if the end position is equal to this number.

If​Match​ETag

Gets or sets an ETag value for a condition specifying that the given ETag must match the ETag of the specified resource.

If​Max​Size​Less​Than​Or​Equal

Gets or sets a value for a condition that specifies the maximum size allowed for an append blob when a new block is committed. The append will succeed only if the size of the blob after the append operation is less than or equal to the specified size.

If​Modified​Since​Time

Gets or sets a DateTimeOffset value for a condition specifying a time since which a resource has been modified.

If​None​Match​ETag

Gets or sets an ETag value for a condition specifying that the given ETag must not match the ETag of the specified resource.

If​Not​Modified​Since​Time

Gets or sets a DateTimeOffset value for a condition specifying a time since which a resource has not been modified.

If​Sequence​Number​Equal

Gets or sets a value for a condition specifying that the current sequence number must be equal to the specified value.

If​Sequence​Number​Less​Than

Gets or sets a value for a condition specifying that the current sequence number must be less than the specified value.

If​Sequence​Number​Less​Than​Or​Equal

Gets or sets a value for a condition specifying that the current sequence number must be less than or equal to the specified value.

Lease​Id

Gets or sets a lease ID that must match the lease on a resource.

Methods

Generate​Empty​Condition()

Constructs an empty access condition.

Generate​If​Append​Position​Equal​Condition(​Int64)

Constructs an access condition such that an operation will be performed only if the end position of the append blob is equal to the specified value.

Generate​If​Exists​Condition()

Constructs an access condition such that an operation will be performed only if the resource exists.

Generate​If​Match​Condition(​String)

Constructs an access condition such that an operation will be performed only if the resource's ETag value matches the specified ETag value.

Generate​If​Max​Size​Less​Than​Or​Equal​Condition(​Int64)

Constructs an access condition such that an operation will be performed only if the size of the append blob after committing the block is less than or equal to the specified value.

Generate​If​Modified​Since​Condition(​Date​Time​Offset)

Constructs an access condition such that an operation will be performed only if the resource has been modified since the specified time.

Generate​If​None​Match​Condition(​String)

Constructs an access condition such that an operation will be performed only if the resource's ETag value does not match the specified ETag value.

Generate​If​Not​Exists​Condition()

Constructs an access condition such that an operation will be performed only if the resource does not exist.

Generate​If​Not​Modified​Since​Condition(​Date​Time​Offset)

Constructs an access condition such that an operation will be performed only if the resource has not been modified since the specified time.

Generate​If​Sequence​Number​Equal​Condition(​Int64)

Constructs an access condition such that an operation will be performed only if resource's current sequence number is equal to the specified value.

Generate​If​Sequence​Number​Less​Than​Condition(​Int64)

Constructs an access condition such that an operation will be performed only if resource's current sequence number is less than the specified value.

Generate​If​Sequence​Number​Less​Than​Or​Equal​Condition(​Int64)

Constructs an access condition such that an operation will be performed only if resource's current sequence number is less than or equal to the specified value.

Generate​Lease​Condition(​String)

Constructs an access condition such that an operation will be performed only if the lease ID on the resource matches the specified lease ID.

Extension Methods

IsDefined(Object)

Represents a set of access conditions to be used for operations against the storage services.

IsNull(Object)

Represents a set of access conditions to be used for operations against the storage services.

IsPrimitive(Object)

Represents a set of access conditions to be used for operations against the storage services.