FormCollection 類別

定義

包含剖析的 HTTP 表單值。

public ref class FormCollection : Microsoft::AspNetCore::Http::IFormCollection, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, Microsoft::Extensions::Primitives::StringValues>>
public class FormCollection : Microsoft.AspNetCore.Http.IFormCollection, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Extensions.Primitives.StringValues>>
type FormCollection = class
    interface IFormCollection
    interface seq<KeyValuePair<string, StringValues>>
    interface IEnumerable
Public Class FormCollection
Implements IEnumerable(Of KeyValuePair(Of String, StringValues)), IFormCollection
繼承
FormCollection
實作

建構函式

FormCollection(Dictionary<String,StringValues>, IFormFileCollection)

初始化 FormCollection 的新執行個體。

欄位

Empty

空的 FormCollection

屬性

Count

取得 包含在 中的 HeaderDictionary 專案數目。

Files

取得與 HTTP 表單相關聯的檔案。

Item[String]

從集合中以單一字串形式取得或設定關聯值。

Keys

取得 ICollection<T>,包含 IFormCollection 的索引鍵。

方法

ContainsKey(String)

判斷 HeaderDictionary 是否包含特定索引鍵。

GetEnumerator()

傳回結構列舉值,這個列舉值會逐一查看集合而不使用 Boxing,而且也透過 IFormCollection 介面使用。

TryGetValue(String, StringValues)

從字典擷取值。

明確介面實作

IEnumerable.GetEnumerator()

傳回枚舉器,逐一查看集合中的非空白路徑方塊。

IEnumerable<KeyValuePair<String,StringValues>>.GetEnumerator()

傳回枚舉器,逐一查看集合中的非空白路徑方塊。

適用於