MSDN Library

FormDataCollectionExtensions.ReadAs Method (FormDataCollection, Type, String, IRequiredMemberSelector, IFormatterLogger)

Reads the collection extensions with specified type and model name.

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

public static Object ReadAs(
	this FormDataCollection formData,
	Type type,
	string modelName,
	IRequiredMemberSelector requiredMemberSelector,
	IFormatterLogger formatterLogger
)

Parameters

formData
Type: System.Net.Http.Formatting.FormDataCollection
The form data.
type
Type: System.Type
The type of the object.
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: System.Object
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:
© 2016 Microsoft