Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the metadata for the specified property.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
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
protected override ModelMetadata CreateMetadata(
IEnumerable<Attribute> attributes,
Type containerType,
Func<Object> modelAccessor,
Type modelType,
string propertyName
)
protected:
virtual ModelMetadata^ CreateMetadata(
IEnumerable<Attribute^>^ attributes,
Type^ containerType,
Func<Object^>^ modelAccessor,
Type^ modelType,
String^ propertyName
) override
Parameters
- attributes
Type: System.Collections.Generic.IEnumerable<Attribute>
The attributes.
- containerType
Type: System.Type
The type of the 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.
Return Value
Type: System.Web.Mvc.ModelMetadata
The metadata for the property.