Click or drag to resize
MvUserType Class
Base class for all user-defined types.
Inheritance Hierarchy

Namespace: RW.Server.Component
Assembly: RW.Server.Component (in RW.Server.Component.dll) Version: 6.3.0.0 (0.8.0.0)
Syntax
public abstract class MvUserType : ICloneable, 
	IStreamable

The MvUserType type exposes the following members.

Constructors
  NameDescription
Protected methodMvUserType
Initializes a new, empty, MvUserType instance.
Top
Methods
  NameDescription
Public methodAsBoolean
Converts to a Boolean value.
Public methodAsChar
Converts to a char value.
Public methodAsDouble
Converts to a double value.
Public methodAsFloat
Converts to a float value.
Public methodAsHRef
Converts to an HRef value.
Public methodAsLong
Converts to a long value.
Public methodAsRef
Converts to a MvRef value.
Public methodAsString
Converts to a string value.
Public methodAsValue
Converts to another MvUserType value.
Public methodClone
Creates a new MvUserType that is a copy of the current instance.
Public methodEncode
Serializes a user-type value.
Public methodEquals
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Returns the hash code for this object.
(Overrides ObjectGetHashCode.)
Top
Remarks
User-defined types allow the assignation of these types to runtime attributes of Server object types or to runtime attributes of representation object types.

This class also lets you pass values of any types to functions that take the type MvValue as a parameter, such as the callback API (see MvEndPoint).

For this class to be serializable (within the Rogue Wave Server framework), you must implement two methods: static public MyType Decode(MvMessage msg)To deserialize your type.public MvMessage Encode(MvMessage msg)To serialize your type.

See Also