Serializer ClassCognex VisionPro 9.10

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.

Inheritance Hierarchy

System Object
  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
Syntax

public sealed class Serializer : ObjectBase, 
	IObject

The Serializer type exposes the following members.

Methods

  NameDescription
Public methodStatic memberDeepCopyObject

Make a deep copy of the supplied object.

Public methodEquals
Compares the equality of this object with another.
(Overrides ObjectBase Equals(Object).)
Public methodGetHashCode
Returns the hash code of this object.
(Overrides ObjectBase GetHashCode .)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberLoadObjectFromBytes

Load an object from bytes.

Public methodStatic memberLoadObjectFromFile(String)

Load an object from a file.

Public methodStatic memberLoadObjectFromFile(String, SerializerOptionsConstants)

Load an object from a file, with option bits that cause fields to be selectively depersisted.

Public methodStatic memberLoadObjectFromStream(Stream)

Load an object from a stream.

Public methodStatic memberLoadObjectFromStream(Stream, SerializerOptionsConstants)

Save an object to a stream.

Public methodStatic memberSaveObjectToBytes

Save an object to bytes.

Public methodStatic memberSaveObjectToFile(IObject, String)

Save an object to a file.

Public methodStatic memberSaveObjectToFile(IObject, String, SerializerOptionsConstants)

Save an object to a file, with option bits that cause fields to be selectively persisted.

Public methodStatic memberSaveObjectToStream(IObject, Stream)

Save an object to a stream.

Public methodStatic memberSaveObjectToStream(IObject, Stream, SerializerOptionsConstants)

Load an object from a stream, with option bits that cause fields to be selectively depersisted.

Public methodToString

Returns a human readable string representation of the object.

(Overrides Object ToString .)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Compares the equality of two Serializer objects.
Public operatorStatic memberInequality
Compares the inequality of two Serializer objects.
Top
Properties

  NameDescription
Public propertyHandle (Overrides ObjectBase Handle.)
Top
See Also