Share via


FormCollection 类

定义

包含应用程序的窗体值提供程序。

public sealed class FormCollection : System.Collections.Specialized.NameValueCollection, System.Web.Mvc.IValueProvider
type FormCollection = class
    inherit NameValueCollection
    interface IValueProvider
Public NotInheritable Class FormCollection
Inherits NameValueCollection
Implements IValueProvider
继承
FormCollection
实现

构造函数

FormCollection()

初始化 FormCollection 类的新实例。

FormCollection(NameValueCollection)

初始化 FormCollection 类的新实例。

方法

GetValue(String)

获取指定的值提供程序。

ToValueProvider()

返回包含值提供程序的字典。

显式接口实现

IValueProvider.ContainsPrefix(String)

获取一个值,该值指示值提供程序是否包含具有指定前缀的项。

IValueProvider.GetValue(String)

使用指定键从值提供程序中获取值。

适用于