Edit

Share via


LengthAttribute(Int32, Int32) Constructor

Definition

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.LengthAttribute
Public Sub New (minimumLength As Integer, maximumLength As Integer)

Parameters

minimumLength
Int32
maximumLength
Int32
Attributes

Applies to