ModelMetadataProvider::GetMetadataForType Method (Func<Object^>^, Type^)

 

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:
virtual ModelMetadata^ GetMetadataForType(
	Func<Object^>^ modelAccessor,
	Type^ modelType
) abstract

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.

Return to top
Show: