Rogue Wave Server Component library for .NET Reference Guide
|
|
MvUserType Class |
Base class for all user-defined types.
SystemObject
RW.Server.ComponentMvUserType
RW.Server.ComponentMvArray
RW.Server.ComponentMvDateTime
RW.Server.ComponentMvKeyValueTable
RW.Server.ComponentMvMessage
RW.Server.ComponentMvUserType
RW.Server.ComponentMvArray
RW.Server.ComponentMvDateTime
RW.Server.ComponentMvKeyValueTable
RW.Server.ComponentMvMessage
Namespace: RW.Server.Component
Assembly: RW.Server.Component (in RW.Server.Component.dll) Version: 7.0.0.0 (7.0.0.0)
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.) |
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.