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 );
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.
ISerializationSurrogate Interface | ISerializationSurrogate Members | System.Runtime.Serialization Namespace