Delen via


CheckValuePropertyOperation Class

Definition

Represents a PropertyBatchOperation that compares the value of the property with the expected value.

public sealed class CheckValuePropertyOperation : System.Fabric.PropertyBatchOperation
type CheckValuePropertyOperation = class
    inherit PropertyBatchOperation
Public NotInheritable Class CheckValuePropertyOperation
Inherits PropertyBatchOperation
Inheritance
CheckValuePropertyOperation

Remarks

The comparison fails if the value of the property and the expected value are not equal. The CheckValuePropertyOperation is generally used as a precondition for the write operations in the batch. Note that if one PropertyBatchOperation fails, the entire batch fails and cannot be committed.

Constructors

CheckValuePropertyOperation(String, Byte[])

Initializes a new instance of the CheckValuePropertyOperation class with specified propertyName and Byte[] value.

CheckValuePropertyOperation(String, Double)

Initializes a new instance of the CheckValuePropertyOperation class with specified propertyName and Double value.

CheckValuePropertyOperation(String, Guid)

Initializes a new instance of the CheckValuePropertyOperation class with specified propertyName and Guid value.

CheckValuePropertyOperation(String, Int64)

Initializes a new instance of the CheckValuePropertyOperation class with specified propertyName and Int64 value.

CheckValuePropertyOperation(String, String)

Initializes a new instance of the CheckValuePropertyOperation class with specified propertyName and String value.

Properties

Kind

Gets the PropertyBatchOperationKind that indicates the kind of the PropertyBatchOperation.

(Inherited from PropertyBatchOperation)
PropertyName

Indicates the name of the property that this PropertyBatchOperation accesses.

(Inherited from PropertyBatchOperation)
PropertyType

Gets the type of the property.

PropertyValue

Gets the value of the property.

Applies to