CogSerializationSurrogate SetObjectData Method (Object, SerializationInfo, StreamingContext, Type)Cognex VisionPro 9.8
Populates the object using the information in the SerializationInfo.

Namespace: Cognex.VisionPro.Implementation
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 75.1.0.0 (75.1.0.0)
Syntax

public static Object SetObjectData(
	Object obj,
	SerializationInfo info,
	StreamingContext context,
	Type nonVisionProBase
)

Parameters

obj
Type: System Object
The object to populate.
info
Type: System.Runtime.Serialization SerializationInfo
The information to populate the object.
context
Type: System.Runtime.Serialization StreamingContext
The source from which the object is deserialized.
nonVisionProBase
Type: System Type
A base class of "obj" which has it's own, non-visionpro serialization implementation. SetObjectData() will not deserialize the private members of this base class.

Return Value

Type: Object
The populated deserialized object.
See Also