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.

適用於