[]
Negates the given numerical variant.
public static Variant operator -(Variant a)
Type | Name | Description |
---|---|---|
Variant | a | The variant to be negated. |
Type | Description |
---|---|
Variant |
Type | Condition |
---|---|
InvalidVariantOperationException | Thrown if the Variant is of a non-numeric, non-boolean type that does not support negation, such as TimeSpan, Date, or Object. |