Export (0) Print
Expand All

SerializationInfo.GetEnumerator Method

Returns a SerializationInfoEnumerator used to iterate through the name-value pairs in the SerializationInfo.

[Visual Basic]
Public Function GetEnumerator() As SerializationInfoEnumerator
public SerializationInfoEnumerator GetEnumerator();
public: SerializationInfoEnumerator* GetEnumerator();
public function GetEnumerator() : SerializationInfoEnumerator;

Return Value

A SerializationInfoEnumerator for parsing the name-value pairs in this SerializationInfo.


This function will most often be used by formatters that need to enumerate through the values before writing them out to the stream.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SerializationInfo Class | SerializationInfo Members | System.Runtime.Serialization Namespace

© 2015 Microsoft