CogSerializationSurrogateSelector GetSurrogate Method Cognex VisionPro 9.21 SR1
Finds the surrogate that represents the specified object's type, starting with the specified surrogate selector for the specified serialization context.

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

public ISerializationSurrogate GetSurrogate(
	Type type,
	StreamingContext context,
	out ISurrogateSelector selector
)

Parameters

type
Type: System Type
The Type of object (class) that needs a surrogate.
context
Type: System.Runtime.Serialization StreamingContext
The source or destination context for the current serialization.
selector
Type: System.Runtime.Serialization ISurrogateSelector 
When this method returns, contains an ISurrogateSelector that holds a reference to the surrogate selector where the appropriate surrogate was found. This parameter is passed uninitialized.

Return Value

Type: ISerializationSurrogate
The appropriate surrogate for the given type in the given context.

Implements

ISurrogateSelector GetSurrogate(Type, StreamingContext, ISurrogateSelector )
See Also