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.VisionAssembly: Cognex.Vision.Startup.Net (in Cognex.Vision.Startup.Net.dll) Version: 9.21.0.0
public static void Initialize(
Startup ProductKey productKey,
string[] libraryNames = null,
bool initializeSecurity = true
)
public static void Initialize(
Startup..::..ProductKey productKey,
string[] libraryNames = null,
bool initializeSecurity = true
)
Public Shared Sub Initialize (
productKey As Startup ProductKey,
Optional libraryNames As String() = Nothing,
Optional initializeSecurity As Boolean = true
)
Public Shared Sub Initialize (
productKey As Startup..::..ProductKey,
Optional libraryNames As String() = Nothing,
Optional initializeSecurity As Boolean = true
)
public:
static void Initialize(
Startup ProductKey productKey,
array<String^>^ libraryNames = nullptr,
bool initializeSecurity = true
)
public:
static void Initialize(
Startup..::..ProductKey productKey,
array<String^>^ libraryNames = nullptr,
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.
A Vision application must call this function
before any Vision classes can be used.