MinLengthAttribute(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.
Initializes a new instance of the MinLengthAttribute class.
public:
MinLengthAttribute(int length);
public MinLengthAttribute(int length);
[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 MinLengthAttribute(int length);
new System.ComponentModel.DataAnnotations.MinLengthAttribute : int -> System.ComponentModel.DataAnnotations.MinLengthAttribute
[<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.MinLengthAttribute : int -> System.ComponentModel.DataAnnotations.MinLengthAttribute
Public Sub New (length As Integer)
Parameters
- length
- Int32
The length of the array or string data.
- Attributes