Class FormDataCollectionExtensions
- Namespace
- System.Web.Http.ModelBinding
- Assembly
- System.Web.Http.dll
Represents the extensions for the collection of form data.
public static class FormDataCollectionExtensions
- Inheritance
-
FormDataCollectionExtensions
- Inherited Members
Methods
ReadAs(FormDataCollection, Type)
Reads the collection extensions with specified type.
public static object ReadAs(this FormDataCollection formData, Type type)
Parameters
formData
FormDataCollectionThe form data.
type
TypeThe type of the object.
Returns
- object
The collection extensions with specified type.
ReadAs(FormDataCollection, Type, string, IRequiredMemberSelector, IFormatterLogger)
Reads the collection extensions with specified type and model name.
public static object ReadAs(this FormDataCollection formData, Type type, string modelName, IRequiredMemberSelector requiredMemberSelector, IFormatterLogger formatterLogger)
Parameters
formData
FormDataCollectionThe form data.
type
TypeThe type of the object.
modelName
stringThe name of the model.
requiredMemberSelector
IRequiredMemberSelectorThe required member selector.
formatterLogger
IFormatterLoggerThe formatter logger.
Returns
- object
The collection extensions.
ReadAs<T>(FormDataCollection)
Reads the collection extensions with specified type.
public static T ReadAs<T>(this FormDataCollection formData)
Parameters
formData
FormDataCollectionThe form data.
Returns
- T
The read collection extensions.
Type Parameters
T
The generic type.
ReadAs<T>(FormDataCollection, string, IRequiredMemberSelector, IFormatterLogger)
Reads the collection extensions with specified type.
public static T ReadAs<T>(this FormDataCollection formData, string modelName, IRequiredMemberSelector requiredMemberSelector, IFormatterLogger formatterLogger)
Parameters
formData
FormDataCollectionThe form data.
modelName
stringThe name of the model.
requiredMemberSelector
IRequiredMemberSelectorThe required member selector.
formatterLogger
IFormatterLoggerThe formatter logger.
Returns
- T
The collection extensions.
Type Parameters
T
The generic type.