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
)

Parameters

formData
Type: System.Net.Http.Formatting.FormDataCollection

The form data.

type
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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).aspx.
Show: