FormFileValueProvider Class

Definition

An IValueProvider adapter for data stored in an IFormFileCollection.

public ref class FormFileValueProvider sealed : Microsoft::AspNetCore::Mvc::ModelBinding::IValueProvider
public sealed class FormFileValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider
type FormFileValueProvider = class
    interface IValueProvider
Public NotInheritable Class FormFileValueProvider
Implements IValueProvider
Inheritance
FormFileValueProvider
Implements

Remarks

Unlike most IValueProvider instances, FormFileValueProvider does not provide any values, but specifically responds to ContainsPrefix(String) queries. This allows the model binding system to recurse in to deeply nested object graphs with only values for form files.

Constructors

FormFileValueProvider(IFormFileCollection)

Creates a value provider for IFormFileCollection.

Methods

ContainsPrefix(String)

Determines whether the collection contains the specified prefix.

GetValue(String)

Retrieves a value object using the specified key.

Applies to