ValidatablePropertyInfo(Type, Type, String, DisplayNameInfo) 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.
Creates a new instance of ValidatablePropertyInfo.
protected ValidatablePropertyInfo(Type declaringType, Type propertyType, string name, Microsoft.Extensions.Validation.DisplayNameInfo? displayNameInfo = default);
new Microsoft.Extensions.Validation.ValidatablePropertyInfo : Type * Type * string * Microsoft.Extensions.Validation.DisplayNameInfo -> Microsoft.Extensions.Validation.ValidatablePropertyInfo
Protected Sub New (declaringType As Type, propertyType As Type, name As String, Optional displayNameInfo As DisplayNameInfo = Nothing)
Parameters
- name
- String
The property name.
- displayNameInfo
- DisplayNameInfo
An optional Microsoft.Extensions.Validation.ValidatablePropertyInfo.DisplayNameInfo that resolves the
display name for the property at validation time. When null, the
validation pipeline uses name as the display name.