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)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ReadAs ( _
    formData As FormDataCollection, _
    type As Type _
) As Object
'Usage
Dim formData As FormDataCollection 
Dim type As Type 
Dim returnValue As Object 

returnValue = formData.ReadAs(type)
public static Object ReadAs(
    this FormDataCollection formData,
    Type type
)
[ExtensionAttribute]
public:
static Object^ ReadAs(
    FormDataCollection^ formData, 
    Type^ type
)
static member ReadAs : 
        formData:FormDataCollection * 
        type:Type -> Object
public static function ReadAs(
    formData : FormDataCollection, 
    type : Type
) : Object

Parameters

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

See Also

Reference

FormDataCollectionExtensions Class

ReadAs Overload

System.Web.Http.ModelBinding Namespace