NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

WeakReference.GetObjectData

Returns a SerializationInfo completely populated with all the data needed to serailze the target object.

[Visual Basic]
Overridable Public 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 data to be serialized.
context
[To be supplied.]

Return Value

A SerializationInfo with all the data needed to serialize the object.

Exceptions

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

Remarks

The GetObjectData method is used to retrieve the data from the source and/or destination, which SerializationInfo holds together while the data is being serialized/deserialized.

See Also

WeakReference Class | WeakReference Members | System Namespace | Object | StreamingContext