RecordCollection MethodsCognex VisionPro 9.22

The RecordCollection type exposes the following members.

Methods

  NameDescription
Public methodAdd

Add an item to the end of this collection.

(Overrides KeyedCollectionOfRecordPtr Add(Record).)
Public methodAddRange
Adds the elements of the specified collection to the end of the collection.
Public methodClear

Remove all items from this collection.

(Overrides KeyedCollectionOfRecordPtr Clear .)
Public methodContains(KeyValuePair String, Record )

Find the first item in this collection that matches the supplied item, and return its index.

(Overrides KeyedCollectionOfRecordPtr Contains(KeyValuePair String, Record ).)
Public methodContains(Record)

Determine whether an item is in this collection.

(Overrides KeyedCollectionOfRecordPtr Contains(Record).)
Public methodContainsKey

Determines whether this dictionary contains the specified key.

(Overrides KeyedCollectionOfRecordPtr ContainsKey(String).)
Public methodCopyTo( KeyValuePair String, Record  , Int32) (Overrides KeyedCollectionOfRecordPtr CopyTo( KeyValuePair String, Record  , Int32).)
Public methodCopyTo( Record , Int32)
Copies all the elements of the collection to the specified one-dimensional array starting at the specified destination array index. The index is specified as a 32-bit integer.
(Overrides KeyedCollectionOfRecordPtr CopyTo( Record , Int32).)
Public methodEquals
Compares the equality of this object with another.
(Overrides ChangedEventShareableBase Equals(Object).)
Public methodGetEnumerator
Returns an IEnumerator for the collection.
(Overrides KeyedCollectionOfRecordPtr GetEnumerator .)
Public methodGetHashCode
Returns the hash code of this object.
(Overrides ChangedEventShareableBase GetHashCode .)
Public methodGetItem
Get the item at the specified index.
(Overrides KeyedCollectionOfRecordPtr GetItem(Int32).)
Public methodGetItemByKey
Get the item at the specified index.
(Overrides KeyedCollectionOfRecordPtr GetItemByKey(String).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeMeta

Get the TypeMeta that describes the type of this object.

(Overrides KeyedCollectionOfRecordPtr GetTypeMeta .)
Public methodIndexOf

Find the first item in this collection that matches the supplied item, and return its index.

(Overrides KeyedCollectionOfRecordPtr IndexOf(Record).)
Public methodIndexOfKey

Searches the list for a given key.

Public methodInsert

Insert the given item at the specified index.

(Overrides KeyedCollectionOfRecordPtr Insert(Int32, Record).)
Public methodKey

Get the key at the specified index.

(Overrides KeyedCollectionOfRecordPtr Key(Int32).)
Public methodMove

Move the selected item to a new index in this collection.

(Overrides KeyedCollectionOfRecordPtr Move(Int32, Int32).)
Public methodRemove

Remove the specified item from this collection.

(Overrides KeyedCollectionOfRecordPtr Remove(Record).)
Public methodRemoveAt

Remove the item at the specified index.

(Overrides KeyedCollectionOfRecordPtr RemoveAt(Int32).)
Public methodReserve

Set the collection capacity be at least the specified number of items. If minimumCapacity is greater than the current collection capacity, this method will cause the collection to reallocate its storage, increasing its capacity to at least minimumCapacity. Attempts to set capacity to a value less than or equal to the current value are ignored.

(Overrides KeyedCollectionOfRecordPtr Reserve(Int64).)
Public methodResumeAndRaiseChangedEvent

Re-enables raising of the ChangedEvent after SuspendChangedEvent has been called, and raises the ChangedEvent 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.

(Overrides KeyedCollectionOfRecordPtr ResumeAndRaiseChangedEvent .)
Public methodsetItem

Replace the element at the specified index.

(Overrides KeyedCollectionOfRecordPtr setItem(Int32, Record).)
Public methodSuspendChangedEvent

Temporarily suspends the raising of the ChangedEvent. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.

(Overrides KeyedCollectionOfRecordPtr SuspendChangedEvent .)
Public methodToString

Returns a human readable string that represents the object.

(Overrides KeyedCollectionOfRecordPtr ToString .)
Public methodTryGetByIndex

Get the key and value associated with the specified index.

(Overrides KeyedCollectionOfRecordPtr TryGetByIndex(Int32, String , Record ).)
Public methodTryGetValue

Get the item associated with the specified key.

(Overrides KeyedCollectionOfRecordPtr TryGetValue(String, Record ).)
Top
See Also