CogIODeviceList ClassCognex VisionPro 9.8 SR1
CogIODeviceList holds all I/O device objects that can be found in the system. However, this class can be used to add, remove or return a reference to the device object. See CogJobManager IODeviceList for getting references to devices in the system. Note: CogJobManger should only instantiate this class.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.Implementation CogSerializableObjectBase
        Cognex.VisionPro.Implementation CogSerializableChangedEventBase
          Cognex.VisionPro.QuickBuild.IO CogIODeviceList

Namespace: Cognex.VisionPro.QuickBuild.IO
Assembly: Cognex.VisionPro.QuickBuild.IO (in Cognex.VisionPro.QuickBuild.IO.dll) Version: 75.0.0.0 (75.0.0.0)
Syntax

[SerializableAttribute]
public abstract class CogIODeviceList : CogSerializableChangedEventBase

The CogIODeviceList type exposes the following members.

Constructors

  NameDescription
Protected methodCogIODeviceList 
Initializes a new instance of CogIODeviceList object.
Protected methodCogIODeviceList(SerializationInfo, StreamingContext)
Initializes a new instance of CogIODeviceList object.
Top
Methods

  NameDescription
Public methodAddDiscreteDevice(CogIODiscreteDevice)
Cognex Internal Use Only
Public methodAddDiscreteDevice(String, Int32)
Cognex Internal Use Only
Public methodAddTCPIPDevice(CogIOTCPIP)
Cognex Internal Use Only
Public methodAddTCPIPDevice(CogIOTCPIP DeviceMode, String)
Cognex Internal Use Only
Public methodAddTCPIPDevice(CogIOTCPIP DeviceMode, String, Int32)
Cognex Internal Use Only
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodFindAllDevices
Cognex Internal Use Only
Protected methodFindAllDiscreteDevices
Cognex Internal Use Only
Protected methodGetAttributes
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetClassName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetComponentName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetConverter
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultEvent
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultProperty
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetDiscreteDevice(Int32)
Returns the discrete device object indexed by listIndex
Public methodGetDiscreteDevice(String, Int32)
Returns the discrete device object that matches deviceTypename and boardIndex.
Protected methodGetEditor
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetObjectData
Implements the GetObjectData method of the ISerializable interface.
(Inherited from CogSerializableObjectBase.)
Protected methodGetProperties 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetProperties( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetPropertyOwner
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetTCPIPDevice(Int32)
Cognex Internal Use Only
Public methodGetTCPIPDevice(CogIOTCPIP DeviceMode, String, Int32)
Cognex Internal Use Only
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodIsAnotherDeviceNamePresent
Cognex Internal Use Only
Public methodIsAnotherDevicePresent(CogIOTCPIP)
Cognex Internal Use Only
Public methodIsAnotherDevicePresent(CogIODeviceType,  Object )
Cognex Internal Use Only
Protected methodMemberwiseClone 
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Protected methodOnChanged(Int64)
This method should be called internally whenever the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Protected methodOnChanged(CogChangedEventArgs)
This method may be called internally whenever a derived object's state may have changed and the derived object expresses this change via a derived CogChangedEventArgs class.
(Inherited from CogSerializableChangedEventBase.)
Public methodRemoveDiscreteDevice(CogIODiscreteDevice)
Remove a matching discrete device object from the list
Public methodRemoveDiscreteDevice(String, Int32)
Remove the device object that matches both deviceTypeName and boardIndex.
Public methodRemoveTCPIPDevice(CogIOTCPIP)
Cognex Internal Use Only
Public methodRemoveTCPIPDevice(CogIOTCPIP DeviceMode, String, Int32)
Cognex Internal Use Only
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called, and raises the Changed event if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.
(Inherited from CogSerializableChangedEventBase.)
Public methodSuspendChangedEvent
Temporarily suspends the raising of the Changed event. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.
(Inherited from CogSerializableChangedEventBase.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Protected fielddiscreteList
Contains a list of discrete I/O devices.
Protected fieldipList
Contains a list of TCP/IP devices.
Protected fieldotherList
Contains a list of other I/O devices.
Protected fieldserialList
Contains a list of serial devices.
Public fieldStatic memberSfAddDiscreteDevice
Public fieldStatic memberSfAddTCPIPDevice
Add TCPIP device change flag
Protected fieldStatic memberSfNextSf
Public fieldStatic memberSfRemoveDiscreteDevice
Public fieldStatic memberSfRemoveTCPIPDevice
Remove TCPIP device change flag
Top
Properties

  NameDescription
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
(Inherited from CogSerializableChangedEventBase.)
Public propertyDiscreteDeviceCount
Returns the total discrete device count in the list.
Public propertyDiscreteDevices
Retrieves an array of discrete devices that are in the list.
Public propertyHasChanged (Inherited from CogSerializableChangedEventBase.)
Public propertyStateFlags
Returns the complete set of state flags supported on this object. The flags may be indexed by name as shown in the following C# code snippet: if (changedObject.StateFlags["Color"] & eventArgs.StateFlags) { ... }
(Inherited from CogSerializableChangedEventBase.)
Public propertyTCPIPDeviceCount
Public propertyTCPIPDevices
Cognex Internal Use Only
Top
Events

  NameDescription
Public eventChanged
This event is raised when one or more parts of the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Top
See Also