Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Gets metadata for the specified property.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public MustOverride Function GetMetadataForProperty ( _
modelAccessor As Func(Of Object), _
containerType As Type, _
propertyName As String _
) As ModelMetadata
public abstract ModelMetadata GetMetadataForProperty(
Func<Object> modelAccessor,
Type containerType,
string propertyName
)
public:
virtual ModelMetadata^ GetMetadataForProperty(
Func<Object^>^ modelAccessor,
Type^ containerType,
String^ propertyName
) abstract
Parameters
- modelAccessor
Type: System.Func<Object>
The model accessor.
- containerType
Type: System.Type
The type of the container.
- propertyName
Type: System.String
The property to get the metadata model for.
Return Value
Type: System.Web.Mvc.ModelMetadata
The metadata model for the specified property.