What are the types of annotation?
What is use of Annotation?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Biswa Pujarini MohapatraRank #465 · 5.4K reputationPosted Feb 10, 2014, 8:01 AM EST
Annonation used for data validation. Inherits from system.componentmodel.annonation
ex - valid emailid, datarange
types of validation supports
custom validation
Uses a custom method for validation.
DataTypeAttribute
Specifies a particular type of data, such as e-mail address or phone number.
EnumDataTypeAttribute
Ensures that the value exists in an enumeration.
RangeAttribute
Designates minimum and maximum constraints.
RegularExpressionAttribute
Uses a regular expression to determine valid values.
RequiredAttribute
Specifies that a value must be provided.
StringLengthAttribute
Designates maximum and minimum number of characters.
ValidationAttribute
Serves as base class for validation attributes.
Chestertonpdf Chesterton20 reputationPosted Mar 12, 2014, 7:13 PM EDT
SUNIL GUTTARank #1,831 · 810 reputationPosted Mar 12, 2014, 11:35 PM EDT
and
system.componentmodel.annonation.schema
These are very important better try to use these while going with project .
Compare which is very important present in schema ..
Regards