CogMethodDescriptor Constructor Cognex VisionPro 9.21 SR1
Constructs a new instance of the CogMethodDescriptor class.

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

public CogMethodDescriptor(
	string descriptorName,
	MethodInfo getterMethodInfo,
	Object[] getterArgs,
	MethodInfo setterMethodInfo,
	Object[] setterArgs,
	Type componentType
)

Parameters

descriptorName
Type: System String
Name of this instance.
getterMethodInfo
Type: System.Reflection MethodInfo
Method used to get the descriptor's value.
getterArgs
Type:  System Object 
Arguments passed to getterMethodInfo when getting the descriptor's value.
setterMethodInfo
Type: System.Reflection MethodInfo
Method used to set the descriptor's value.
setterArgs
Type:  System Object 
Arguments passed to setterMethodInfo when setting the descriptor's value.
componentType
Type: System Type
Type of component containing the method(s) to which this descriptor applies.
See Also