Finds the surrogate that represents the specified object's type,
starting with the specified surrogate selector for the specified
serialization context.
Namespace: Cognex.VisionPro.ImplementationAssembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 79.0.0.0 (79.0.0.0)
Syntax
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: ISerializationSurrogateThe appropriate surrogate for the given type in the given context.
Implements
ISurrogateSelector GetSurrogate(Type, StreamingContext, ISurrogateSelector )See Also