FormDataCollectionExtensions.ReadAs Method (FormDataCollection, Type)

Reads the collection extensions with specified type.

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

public static Object ReadAs(
	this FormDataCollection formData,
	Type type


Type: System.Net.Http.Formatting.FormDataCollection

The form data.

Type: System.Type

The type of the object.

Return Value

Type: System.Object
The collection extensions with specified type.

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 or