共用方式為


ModelStateDictionary.GetEnumerator 方法

定義

傳回列舉程式,可用來逐一查看字典。

public:
 virtual System::Collections::Generic::IEnumerator<System::Collections::Generic::KeyValuePair<System::String ^, System::Web::ModelBinding::ModelState ^>> ^ GetEnumerator();
public System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string,System.Web.ModelBinding.ModelState>> GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, System.Web.ModelBinding.ModelState>>
override this.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, System.Web.ModelBinding.ModelState>>
Public Function GetEnumerator () As IEnumerator(Of KeyValuePair(Of String, ModelState))

傳回

IEnumerator<KeyValuePair<String,ModelState>>

可用來逐一查看集合的列舉值。

實作

適用於