AssociatedMetadataProvider.GetMetadataForType Method (Func<Object>, Type)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Exception Condition
ArgumentNullException

The modelType parameter is null.

.NET Framework
Available since 4.5
Return to top
Show: