All Namespaces

  • Namespaces
    • AjaxControlToolkit
    • com
    • CrystalDecisions
    • DevExpress
    • DocumentFormat
    • Dundas
    • Ilrun
    • MediaCenter
    • Microsoft
    • MS
    • ServiceBus
    • Spaanjaars
    • SqlContracts
    • System
      • Activities
      • AddIn
      • CodeDom
      • ComponentModel
        • Composition
        • DataAnnotations
          • Schema
        • Design
      • Configuration
      • Data
      • Design
      • Diagnostics
      • DirectoryServices
      • Drawing
      • Dynamic
      • EnterpriseServices
      • IdentityModel
      • IO
      • Linq
      • Management
      • Messaging
      • Net
      • Printing
      • Reflection
      • Resources
      • Runtime
      • Security
      • ServiceModel
      • ServiceProcess
      • Timers
      • Transactions
      • Web
      • Windows
      • Workflow
      • Xml
    • WindowsFormsIntegration

StringLengthAttribute

Name: StringLengthAttribute
Namespace: System.ComponentModel.DataAnnotations
Inherits from: System.ComponentModel.DataAnnotations.ValidationAttribute
Short description: Specifies the minimum and maximum length of characters that are allowed in a data field.
Added: 2009-02-14
Last modified: 2009-02-14
External help: http://msdn.microsoft.com/en-us/library/System.ComponentModel.DataAnnotations.StringLengthAttribute.aspx
Added by: Imar Spaanjaars
Can be used on:
Assembly Class Interface
Method Property Field
Constructor Struct Enum
Event Parameter Delegate
ReturnValue Generic Parameter Module
Available in:
  • 3.5.0.0
  • 3.5.0.0 SP1
  • 4.0.0
  • 4.0.0.0
  • 4.5.0.0
Defined in:
  • System.ComponentModel.DataAnnotations.dll (3.5.0.0)
  • System.ComponentModel.DataAnnotations.dll (4.0.0.0)
Abstract?
No Sealed? No
Public?
Yes Internal? No
Allow multiple?
No Obsolete? No
 
Full description:
 
Class diagram:
This diagram is autogenerated and may contain errors.
Please report them if you find them.




Code examples

No code examples were found for this attribute.

If you want to add a code example, you need to log in first. Don't have account? You can sign up for one right now.

Links

No links found.



If you want to add a link, you need to log in first. Don't have account? You can sign up for one right now.