Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetObjectData Method
Collapse the table of content
Expand the table of content

RuntimeFieldHandle.GetObjectData Method

Populates a SerializationInfo with the data necessary to deserialize the field represented by this instance.

[Visual Basic]
Public Overridable Sub GetObjectData( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
public virtual void GetObjectData(
 SerializationInfo info,
 StreamingContext context
public: virtual void GetObjectData(
 SerializationInfo* info,
 StreamingContext context
public function GetObjectData(
   info : SerializationInfo,
 context : StreamingContext


The object to populate with serialization information.
(Reserved) The place to store and retrieve serialized data.


Exception Type Condition
ArgumentNullException info is a null reference (Nothing in Visual Basic).
SerializationException Value is invalid.


The context parameter is reserved; it does not currently participate in this operation.

For more information, see the SerializationInfo.AddValue method.


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

RuntimeFieldHandle Structure | RuntimeFieldHandle Members | System Namespace

© 2015 Microsoft