LengthAttribute(Int32, Int32) Constructor 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
 LengthAttribute(int minimumLength, int maximumLength);[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Uses reflection to get the 'Count' property on types that don't implement ICollection. This 'Count' property may be trimmed. Ensure it is preserved.")]
public LengthAttribute(int minimumLength, int maximumLength);[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Uses reflection to get the 'Count' property on types that don't implement ICollection. This 'Count' property may be trimmed. Ensure it is preserved.")>]
new System.ComponentModel.DataAnnotations.LengthAttribute : int * int -> System.ComponentModel.DataAnnotations.LengthAttributePublic Sub New (minimumLength As Integer, maximumLength As Integer)Parameters
- minimumLength
- Int32
- maximumLength
- Int32
- Attributes