class
ValidateAttribute
public class ValidateAttribute : Attribute Validates a property using a method.
Constructors
ValidateAttribute(String condition, String message, LogLevel status) Specifies a method in the same class to use for validation.
condition — Name of the validation method in the current class message — Message to display when validation fails status — severity level to use when validation fails ValidateAttribute(Type type, String condition, String message, LogLevel status) Specifies a static method in another class to use for validation.
type — The type containing the static validation method condition — Name of the static validation method message — Message to display when validation fails status — severity level to use when validation fails Methods
Result Validate(Object targetObject, TypeDescription td, Object propertyValue) Validates a property value using the specified method.
Assembly:
Sandbox.Engine Full Name: ValidateAttribute