DateTimeValidatorAttribute Class

Summary

Used to indicate that a property should be able to be converted into a System.DateTime.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Attributes
Base Types
graph BT Type-->Base0["ValidatorAttribute"] click Base0 "/api/NAnt.Core.Attributes/ValidatorAttribute" Base0-->Base1["Attribute"] Type["DateTimeValidatorAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Property, Inherited = true)]
public sealed class DateTimeValidatorAttribute : ValidatorAttribute

Attributes

Type Description
AttributeUsageAttribute

Constructors

Name Summary
DateTimeValidatorAttribute() Initializes a new instance of the NAnt.Core.Attributes.DateTimeValidatorAttribute class.

Methods

Name Value Summary
Validate(Object) void
Checks if the specified value can be converted to a System.DateTime.