ModelMetadataIdentity.ForConstructor(ConstructorInfo, Type) Method

Definition

Creates a ModelMetadataIdentity for the provided parameter with the specified model type.

C#
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForConstructor (System.Reflection.ConstructorInfo constructor, Type modelType);

Parameters

constructor
ConstructorInfo

The ConstructorInfo.

modelType
Type

The model type.

Returns

A ModelMetadataIdentity.

Applies to

Produk Versi
ASP.NET Core 5.0, 6.0, 7.0, 8.0, 9.0