FormDataCollectionExtensions.ReadAs<T> Method (FormDataCollection)
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(Of T) ( _
formData As FormDataCollection _
) As T
'Usage
Dim formData As FormDataCollection
Dim returnValue As T
returnValue = formData.ReadAs()
public static T ReadAs<T>(
this FormDataCollection formData
)
[ExtensionAttribute]
public:
generic<typename T>
static T ReadAs(
FormDataCollection^ formData
)
static member ReadAs :
formData:FormDataCollection -> 'T
JScript does not support generic types and methods.
Type Parameters
- T
The generic type.
Parameters
formData
Type: System.Net.Http.Formatting.FormDataCollectionThe form data.
Return Value
Type: T
The read 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(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).