MvUserType Class |
Namespace: RW.Server.Component
The MvUserType type exposes the following members.
| Name | Description | |
|---|---|---|
| MvUserType |
Initializes a new, empty, MvUserType instance.
|
| Name | Description | |
|---|---|---|
| AsBoolean |
Converts to a Boolean value.
| |
| AsChar |
Converts to a char value.
| |
| AsDouble |
Converts to a double value.
| |
| AsFloat |
Converts to a float value.
| |
| AsHRef |
Converts to an HRef value.
| |
| AsLong |
Converts to a long value.
| |
| AsRef |
Converts to a MvRef value.
| |
| AsString |
Converts to a string value.
| |
| AsValue |
Converts to another MvUserType value.
| |
| Clone |
Creates a new MvUserType that is a copy of the
current instance.
| |
| Encode |
Serializes a user-type value.
| |
| Equals |
Returns a value indicating whether this instance is equal to a
specified object.
(Overrides ObjectEquals(Object).) | |
| GetHashCode |
Returns the hash code for this object.
(Overrides ObjectGetHashCode.) |
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.