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 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
Type Parameters
- T
The CogReadOnlyCollectionWithCustomSerialization T type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogReadOnlyCollectionWithCustomSerialization T |
Constructs an empty CogReadOnlyCollectionWithCustomSerialization;
| |
| CogReadOnlyCollectionWithCustomSerialization 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.
| |
| CogReadOnlyCollectionWithCustomSerialization 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.
| |
| CogReadOnlyCollectionWithCustomSerialization T (SerializationInfo, StreamingContext) |
Special serialization constructor.
|
Methods
| Name | Description | |
|---|---|---|
| Contains |
Determines whether an element is in the collection.
| |
| CopyTo |
Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array.
| |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetAttributes |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetClassName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetComponentName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetConverter |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultEvent |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultProperty |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEditor |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents( Attribute ) |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| GetObjectData |
Implements the GetObjectData method of the ISerializable interface.
(Inherited from CogSerializableObjectBase.) | |
| GetProperties |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetProperties( Attribute ) |
Causes the list of items to show up in the property grid.
(Overrides CogObjectBase GetProperties( Attribute ).) | |
| GetPropertyOwner |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IndexOf |
Searches the collection for the specified object and returns the zero-based index of the first occurrence.
| |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
| ToArray |
Calls CopyTo() and returns a new array which contains the members of this collection.
| |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| mInnerList |
Properties
| Name | Description | |
|---|---|---|
| Count |
The number of elements contained in the Collection.
| |
| Item |
Gets the element at the specified index.
|
See Also