CogReadOnlyCollectionWithCustomSerialization T  ClassCognex VisionPro 9.7
Base class to be used for a generic, ordered collection of values that cannot be changed after it is contsructed. Intended to be used for Tool results collections. This class requires custom serialization of its inner list.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.Implementation CogSerializableObjectBase
        Cognex.VisionPro.Implementation CogReadOnlyCollectionWithCustomSerialization T 
          Cognex.VisionPro.PMRedLine CogPMRedLineResults
          Cognex.VisionPro3D Cog3DPatMaxResults

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

[SerializableAttribute]
public class CogReadOnlyCollectionWithCustomSerialization<T> : CogSerializableObjectBase, 
	IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters

T

The CogReadOnlyCollectionWithCustomSerialization T  type exposes the following members.

Constructors

  NameDescription
Protected methodCogReadOnlyCollectionWithCustomSerialization T  
Constructs an empty CogReadOnlyCollectionWithCustomSerialization;
Protected methodCogReadOnlyCollectionWithCustomSerialization T (List T )
Wraps the items list int a CogReadOnlyCollectionWithCustomSerialization. Note that changes to the original list will be reflected in the Read only collection. Note that the properties of the collection elements themselves can still be changed via this interface.
Protected methodCogReadOnlyCollectionWithCustomSerialization T ( T )
Constructs a new instance of the CogReadOnlyCollectionWithCustomSerialization class. Note that the properties of the collection elements themselves can still be changed via this interface.
Protected methodCogReadOnlyCollectionWithCustomSerialization T (SerializationInfo, StreamingContext)
Special serialization constructor.
Top
Methods

  NameDescription
Public methodContains
Determines whether an element is in the collection.
Public methodCopyTo
Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array.
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 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.)
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 )
Causes the list of items to show up in the property grid.
(Overrides CogObjectBase GetProperties( Attribute ).)
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 methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Searches the collection for the specified object and returns the zero-based index of the first occurrence.
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
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.)
Public methodToArray
Calls CopyTo() and returns a new array which contains the members of this collection.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Protected fieldmInnerList
Top
Properties

  NameDescription
Public propertyCount
The number of elements contained in the Collection.
Public propertyItem
Gets the element at the specified index.
Top
See Also