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.

适用于