FormDataCollectionExtensions.ReadAs<T> Method (FormDataCollection, String, IRequiredMemberSelector, IFormatterLogger)

Reads the collection extensions with specified type.

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

public static T ReadAs<T>(
	this FormDataCollection formData,
	string modelName,
	IRequiredMemberSelector requiredMemberSelector,
	IFormatterLogger formatterLogger
)

Type Parameters

T

The generic type.

Parameters

formData
Type: System.Net.Http.Formatting.FormDataCollection
The form data.
modelName
Type: System.String
The name of the model.
requiredMemberSelector
Type: System.Net.Http.Formatting.IRequiredMemberSelector
The required member selector.
formatterLogger
Type: System.Net.Http.Formatting.IFormatterLogger
The formatter logger.

Return Value

Type: T
The collection extensions.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FormDataCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936.aspx or https://msdn.microsoft.com/en-us/library/bb383977.aspx.
Show: