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!

ISerializationSurrogate.GetObjectData

Locates the surrogate that will handle the specified object and streaming context.

[Visual Basic]
Sub GetObjectData( _
   ByVal obj As Object, _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
)
[C#]
void GetObjectData(
   object obj,
   SerializationInfo info,
   StreamingContext context
);
[C++]
void GetObjectData(
   Object* obj,
   SerializationInfo* info,
   StreamingContext context
) = 0;
[JScript]
function GetObjectData(
   obj : Object,
   info : SerializationInfo,
   context : StreamingContext
);

Parameters

obj
The object for which to generate the SerializationInfo.
info
[To be supplied.]
context
The streaming context of this serialization.

Remarks

This method, having located the surrogate, returns a SerializationInfo that describes its view of that object-- this includes both the object's fields and properties, as well as their current values. Note that the SerializationInfo may correspond to the genuine object, or may be a synthesized view by the surrogate.

See Also

ISerializationSurrogate Interface | ISerializationSurrogate Members | System.Runtime.Serialization Namespace