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 _
)
[C#]
public virtual void GetObjectData(
 SerializationInfo info,
 StreamingContext context
);
[C++]
public: virtual void GetObjectData(
 SerializationInfo* info,
 StreamingContext context
);
[JScript]
public function GetObjectData(
   info : SerializationInfo,
 context : StreamingContext
);

Parameters

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

Exceptions

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

Remarks

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

For more information, see the SerializationInfo.AddValue method.

Requirements

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

Show:
© 2015 Microsoft