Export (0) Print
Expand All

ModelMetadataProvider.GetMetadataForType Method

Gets the metadata for the specified model accessor and model type.

Namespace:  System.Web.Http.Metadata
Assembly:  System.Web.Http (in System.Web.Http.dll)

public abstract ModelMetadata GetMetadataForType(
	Func<Object> modelAccessor,
	Type modelType
)

Parameters

modelAccessor
Type: System.Func<Object>

The model accessor.

modelType
Type: System.Type

The type of the mode.

Return Value

Type: System.Web.Http.Metadata.ModelMetadata
The metadata.
Show:
© 2014 Microsoft