SqlErrorCollection.GetEnumerator 方法

定義

傳回逐一查看 SqlErrorCollection 的列舉值。Returns an enumerator that iterates through the SqlErrorCollection.

public:
 virtual System::Collections::IEnumerator ^ GetEnumerator();
public System.Collections.IEnumerator GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.IEnumerator
override this.GetEnumerator : unit -> System.Collections.IEnumerator
Public Function GetEnumerator () As IEnumerator

傳回

實作

備註

列舉值可用於讀取集合中的資料,但無法用於修改基礎集合。Enumerators can be used to read the data in a collection, but they cannot be used to modify the underlying collection.

適用於

另請參閱