Description
The IVariantOperations class allows you to implement an abstract variant operations manager object.
Instance methods
Add
Performs the ‘+’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
And
Performs the AND operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
Convert
Converts a variant to a specified type.
public abstractVariant Convert(Variant value, VariantType newType);
- value: Variant - variant value to be converted.
 - newType: VariantType - type of object to be returned.
 - returns: Variant - converted Variant value.
 
Div
Performs the ‘/’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
Equal
Performs the ‘=’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
GetElement
Performs the [] operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
In
Performs the IN operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
Less
Performs the ‘<’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
LessEqual
Performs the ‘<=’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
Like
Performs the LIKE operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
Lsh
Performs the ‘«’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
Mod
Performs the ‘%’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
More
Performs the ‘>’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
MoreEqual
Performs the ‘>=’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
Mul
Performs the ‘*’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
Negative
Performs the unary ‘-’ operation for a variant.
Not
Performs the NOT operation for a variant.
NotEqual
Performs the ‘<>’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
Or
Performs the OR operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
Pow
Performs the ‘^’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
Rsh
Performs the ‘»’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
Sub
Performs the ‘-’ operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.
 
TypeToString
Converts variant type to string representation.
protectedstring TypeToString(VariantType value)
- value: VariantType - variant type to be converted.
 - returns: string - string representation of the type.
 
Xor
Performs the XOR operation for two variants.
- value1: Variant - first operand for this operation.
 - value2: Variant - second operand for this operation.
 - returns: Variant - result variant object.