This class provides convenient functions for serializing Vision objects. It allows you to save (load) an object to (from) files or streams. You should use these functions for serializing all Vision objects.
Cognex.Vision ObjectBase
Cognex.Vision Serializer
Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.10.0.0
The Serializer type exposes the following members.
| Name | Description | |
|---|---|---|
| DeepCopyObject | Make a deep copy of the supplied object. | |
| Equals | Compares the equality of this object with another. (Overrides ObjectBase Equals(Object).) | |
| GetHashCode | Returns the hash code of this object. (Overrides ObjectBase GetHashCode .) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| LoadObjectFromBytes | Load an object from bytes. | |
| LoadObjectFromFile(String) | Load an object from a file. | |
| LoadObjectFromFile(String, SerializerOptionsConstants) | Load an object from a file, with option bits that cause fields to be selectively depersisted. | |
| LoadObjectFromStream(Stream) | Load an object from a stream. | |
| LoadObjectFromStream(Stream, SerializerOptionsConstants) | Save an object to a stream. | |
| SaveObjectToBytes | Save an object to bytes. | |
| SaveObjectToFile(IObject, String) | Save an object to a file. | |
| SaveObjectToFile(IObject, String, SerializerOptionsConstants) | Save an object to a file, with option bits that cause fields to be selectively persisted. | |
| SaveObjectToStream(IObject, Stream) | Save an object to a stream. | |
| SaveObjectToStream(IObject, Stream, SerializerOptionsConstants) | Load an object from a stream, with option bits that cause fields to be selectively depersisted. | |
| ToString | Returns a human readable string representation of the object. |
| Name | Description | |
|---|---|---|
| Equality | Compares the equality of two Serializer objects. | |
| Inequality | Compares the inequality of two Serializer objects. |
| Name | Description | |
|---|---|---|
| Handle | (Overrides ObjectBase Handle.) |