Export (0) Print
Expand All

AssociatedMetadataProvider.GetMetadataForType Method

.NET Framework 4.5

When overridden in a derived class, returns metadata for the model type.

Namespace:  System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

public override ModelMetadata GetMetadataForType(
	Func<Object> modelAccessor,
	Type modelType
)

Parameters

modelAccessor
Type: System.Func<Object>

The model accessor.

modelType
Type: System.Type

The type of the model.

Return Value

Type: System.Web.ModelBinding.ModelMetadata
Metadata for the model type.

ExceptionCondition
ArgumentNullException

The modelType parameter is null.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft