Startup Initialize Method Cognex VisionPro 9.23
This function calls Vision.Init(), Registration.RegisterAll() and also explicitly loads the Cognex.Vision.*.dlls. Forcing all the dlls to load causes the contained types to be registered with cereal serialization.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Startup.Net (in Cognex.Vision.Startup.Net.dll) Version: 9.24.0.0
Syntax

public static void Initialize(
	Startup ProductKey productKey,
	string[] libraryNames = null,
	bool initializeSecurity = true
)

Parameters

productKey
Type: Cognex.Vision Startup ProductKey
An enum describing the underlying license product type the function will initialize.
libraryNames (Optional)
Type:  System String 
A vector that contains the dlls to be loaded.
initializeSecurity (Optional)
Type: System Boolean
A boolean parameter that determines whether to initialize security.
Remarks

A Vision application must call this function before any Vision classes can be used.
See Also