SerializationInfo.GetEnumerator 方法

定义

返回一个 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

返回

一个 SerializationInfoEnumerator,用于分析 SerializationInfo 存储中的名称/值对。A SerializationInfoEnumerator for parsing the name-value pairs contained in the SerializationInfo store.

注解

此函数通常由在将这些值写入流之前需要枚举这些值的格式化程序使用。This function will most often be used by formatters that need to enumerate through the values before writing them out to the stream.

适用于