SerializationInfo.GetEnumerator SerializationInfo.GetEnumerator SerializationInfo.GetEnumerator SerializationInfo.GetEnumerator Method

定義

傳回 SerializationInfoEnumerator,可用於逐一查看 SerializationInfo 存放區中的名稱 / 值組。Returns a SerializationInfoEnumerator used to iterate through the name-value pairs in the SerializationInfo store.

public:
 System::Runtime::Serialization::SerializationInfoEnumerator ^ GetEnumerator();
public System.Runtime.Serialization.SerializationInfoEnumerator GetEnumerator ();
member this.GetEnumerator : unit -> System.Runtime.Serialization.SerializationInfoEnumerator
Public Function GetEnumerator () As SerializationInfoEnumerator

傳回

備註

要列舉的值,然後再寫出至資料流的格式器將最常使用此函式。This function will most often be used by formatters that need to enumerate through the values before writing them out to the stream.

適用於