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.

适用于