EmptyModelMetadataProvider.CreateMetadata Method (IEnumerable(Of Attribute), Type, Func(Of Object), Type, String)

.NET Framework (current version)
 

Creates a new instance of the ModelMetadata class.

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

Protected Overrides Function CreateMetadata (
	attributes As IEnumerable(Of Attribute),
	containerType As Type,
	modelAccessor As Func(Of Object),
	modelType As Type,
	propertyName As String
) As ModelMetadata

Parameters

attributes
Type: System.Collections.Generic.IEnumerable(Of Attribute)

The attributes.

containerType
Type: System.Type

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

modelAccessor
Type: System.Func(Of 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

An empty metadata object.

.NET Framework
Available since 4.5
Return to top
Show: