UnitNullOrNotNegativeAttribute

StockSharp.Messages

Validiert, dass ein Wert der Einheit null oder nicht negativ ist (Null oder größer).

Erbt von: ValidationAttribute

Methoden

IsValid
public override bool IsValid(object value)
result = unitNullOrNotNegativeAttribute.IsValid(value)

Validates the specified value by converting it and applying the custom validation.

value
The value to validate.

Rückgabe: True if the value is valid; otherwise, false.