ValidatablePropertyInfo(Type, Type, String, DisplayNameInfo) Constructor

Definition

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

declaringType
Type

The Type that declares the property.

propertyType
Type

The Type of the property.

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.

Applies to