AssociatedMetadataProvider.CreateMetadata Method (IEnumerable<Attribute>, Type, Func<Object>, Type, String)

.NET Framework (current version)
 

When overridden in a derived class, creates metadata for a model.

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

protected abstract ModelMetadata CreateMetadata(
	IEnumerable<Attribute> attributes,
	Type containerType,
	Func<object> modelAccessor,
	Type modelType,
	string propertyName
)

Parameters

attributes
Type: System.Collections.Generic.IEnumerable<Attribute>

The attributes.

containerType
Type: System.Type

The type of the container, or null if there is no container.

modelAccessor
Type: System.Func<Object>

The model accessor.

modelType
Type: System.Type

The type of the model.

propertyName
Type: System.String

The name of the property, or null if the model is not a property.

Return Value

Type: System.Web.ModelBinding.ModelMetadata

Metadata for a model.

.NET Framework
Available since 4.5
Return to top
Show: