This class provides convenient functions for serializing objects. It allows you to save (load) objects to (from) files or streams. You should use these functions for serializing all VisionPro objects.
Inheritance Hierarchy
Cognex.VisionPro CogSerializer
Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.0.0.0
Syntax
The CogSerializer type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogSerializer |
Methods
| Name | Description | |
|---|---|---|
| DeepCopyObject(Object) | Returns a deep copy of the supplied object. | |
| DeepCopyObject(Object, CogSerializationOptionsConstants) | Returns a deep copy of the supplied object, modulated by the supplied serialization options. | |
| 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.) | |
| GetFileFormat | ||
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| LoadObjectFromFile(String) | Loads an object from the given file. The format of the file will be determined automatically for convenience. | |
| LoadObjectFromFile(String, Type) | Loads an object from a file in the specified format. | |
| LoadObjectFromFile(String, Type, CogSerializationOptionsConstants) | Loads an object from a file in a specified format, with option bits that cause fields to be selectively persisted. | |
| LoadObjectFromStream(Stream) | Loads an object from a stream. Attempt to automatically determine format. | |
| LoadObjectFromStream(Stream, Type) | Loads an object from a stream in a specified format. | |
| LoadObjectFromStream(Stream, Type, CogSerializationOptionsConstants) | Loads an object from a stream in a specified format, with option bits that cause fields to be selectively persisted. | |
| LoadObjectFromStream(Stream, Type, CogSerializationOptionsConstants, StreamingContextStates) | Loads an object from a stream in a specified format, with option bits that cause fields to be selectively persisted. | |
| LoadObjectFromString(String) | Obsolete. Loads an object from a string in a text format. | |
| LoadObjectFromString(String, Type) | Obsolete. Loads an object from a string in a specified format. | |
| LoadObjectFromString(String, Type, CogSerializationOptionsConstants) | Obsolete. Loads an object from a string in a specified format, with option bits that cause fields to be selectively persisted. | |
| LoadObjectFromString(String, Type, CogSerializationOptionsConstants, StreamingContextStates) | Obsolete. Loads an object from a string in a specified format, with option bits that cause fields to be selectively persisted. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SaveObjectToFile(Object, String) | Saves an object to a file in a binary format. | |
| SaveObjectToFile(Object, String, Type) | Saves an object to a file in a specified format. | |
| SaveObjectToFile(Object, String, Type, CogSerializationOptionsConstants) | Saves an object to a file in a specified format, with option bits that cause fields to be selectively persisted. | |
| SaveObjectToStream(Object, Stream) | Saves an object to a stream in a binary format. | |
| SaveObjectToStream(Object, Stream, Type) | Saves an object to a stream in a specified format. | |
| SaveObjectToStream(Object, Stream, Type, CogSerializationOptionsConstants) | Saves an object to a stream in a specified format, with option bits that cause fields to be selectively persisted. | |
| SaveObjectToStream(Object, Stream, Type, CogSerializationOptionsConstants, StreamingContextStates) | Saves an object to a stream in a specified format, with option bits that cause fields to be selectively persisted. | |
| SaveObjectToString(Object) | Obsolete. Saves an object to a string as text. | |
| SaveObjectToString(Object, Type) | Obsolete. Saves an object to a string in a specified format. | |
| SaveObjectToString(Object, Type, CogSerializationOptionsConstants) | Obsolete. Saves an object to a string in a specified format, with option bits that cause fields to be selectively persisted. | |
| SaveObjectToString(Object, Type, CogSerializationOptionsConstants, StreamingContextStates) | Obsolete. Saves an object to a string in a specified format, with option bits that cause fields to be selectively persisted. | |
| ToString | (Inherited from Object.) |
See Also