HttpHeaderValueCollection<T>.GetEnumerator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an enumerator that iterates through the HttpHeaderValueCollection<T>.
public:
virtual System::Collections::Generic::IEnumerator<T> ^ GetEnumerator();
public System.Collections.Generic.IEnumerator<T> GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.Generic.IEnumerator<'T (requires 'T : null)>
override this.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<'T (requires 'T : null)>
Public Function GetEnumerator () As IEnumerator(Of T)
Public Iterator Overridable NotOverridable Function GetEnumerator () As IEnumerator(Of T)
Returns
An enumerator for the HttpHeaderValueCollection<T> instance.
Implements
Remarks
This enumerator returns the keys of the collection as strings. The foreach
statement of the C# language (for each
in Visual Basic) hides the complexity of the enumerators. Therefore, using foreach
is recommended, instead of directly manipulating the enumerator.
Enumerators can be used to read the data in the collection, but they cannot be used to modify the underlying collection.
Initially, the enumerator is positioned before the first element in the collection.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback。
近日公開予定: 2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub イシューを段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、以下を参照してください:フィードバックの送信と表示