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.
Returns the metadata for the specified property using the type of the model.
Namespace: System.Web.Http.Metadata.Providers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overrides NotOverridable Function GetMetadataForType ( _
modelAccessor As Func(Of Object), _
modelType As Type _
) As ModelMetadata
'Usage
Dim instance As AssociatedMetadataProvider
Dim modelAccessor As Func(Of Object)
Dim modelType As Type
Dim returnValue As ModelMetadata
returnValue = instance.GetMetadataForType(modelAccessor, _
modelType)
public override sealed ModelMetadata GetMetadataForType(
Func<Object> modelAccessor,
Type modelType
)
public:
virtual ModelMetadata^ GetMetadataForType(
Func<Object^>^ modelAccessor,
Type^ modelType
) override sealed
abstract GetMetadataForType :
modelAccessor:Func<Object> *
modelType:Type -> ModelMetadata
override GetMetadataForType :
modelAccessor:Func<Object> *
modelType:Type -> ModelMetadata
public override final function GetMetadataForType(
modelAccessor : Func<Object>,
modelType : Type
) : ModelMetadata
Parameters
modelAccessor
Type: System.Func<Object>The model accessor.
modelType
Type: System.TypeThe type of the container.
Return Value
Type: System.Web.Http.Metadata.ModelMetadata
The metadata for the specified property.