Message Class (.NET)

From RemObjects Wiki
Jump to: navigation, search

This is a Library topic for RemObjects SDK for .NET
This page is generated from external data, please do not update

NamespacesInterfacesClassesEnumsImplements

Contents

Overview

The Message abstract component provides a base-component that can be used for implementing custom RemObjects SDK Message objects. It provides a common base-implementation of the IMessage interface.

Though message components typically descend from Message, this is not required. but all custom messages must implement IMessage.


Location

Implemented interfaces


Properties

AddServerExceptionPrefix



Prism:   property AddServerExceptionPrefix: Boolean read write
C#:   Boolean AddServerExceptionPrefix { get; set; }
VB:   Property AddServerExceptionPrefix As Boolean


ClientID

Contains the Client ID for the message. Client IDs are used by the RemObjects SDK for Session Management and to uniquely identify individual client on the server, for example by the Per-Client Class Factory or in your own custom code. Generally, you will not need to assign or read this value; the framework will automatically create a new unique client ID whenever a message object is instantiated on the client. However, you do have the option to read and write the ClientID property manually, for example to persist a specific client ID between shutdown and restart of your application.



Prism:   property ClientID: Guid read write
C#:   Guid ClientID { get; set; }
VB:   Property ClientID As Guid


ContentType



Prism:   property ContentType: String read write
C#:   String ContentType { get; set; }
VB:   Property ContentType As String


DefaultDispatcherName

Returns the default/recommended dispatcher name for the message type.



Prism:   property DefaultDispatcherName: String read
C#:   String DefaultDispatcherName { get; }
VB:   Property ReadOnly DefaultDispatcherName As String


Envelopes



Prism:   property Envelopes: MessageEnvelopes read
C#:   MessageEnvelopes Envelopes { get; }
VB:   Property ReadOnly Envelopes As MessageEnvelopes


InterfaceName

Contains the name of the interface (i.e. the service) that is being called (read-only).



Prism:   property InterfaceName: String read write
C#:   String InterfaceName { get; set; }
VB:   Property InterfaceName As String


IsValidMessage



Prism:   property IsValidMessage: Boolean read
C#:   Boolean IsValidMessage { get; }
VB:   Property ReadOnly IsValidMessage As Boolean


MessageName

Contains the name of the message (i.e. the method) that is being called (read-only).



Prism:   property MessageName: String read write
C#:   String MessageName { get; set; }
VB:   Property MessageName As String


MessageType

Contains the Type of message represented by the message instance.



Prism:   property MessageType: MessageType read write
C#:   MessageType MessageType { get; set; }
VB:   Property MessageType As MessageType


SerializerInstance

This is the Serializer used to write values to the message. Descendant classes will set this property to a custom Serializer class within their InitializeMessage or ReadFromStream methods, so that future calls to the Read* and Write* methods can access the custom Serializer.



Prism:   property SerializerInstance: Serializer read write
C#:   Serializer SerializerInstance { get; set; }
VB:   Property SerializerInstance As Serializer


ServerExceptionPrefix



Prism:   property ServerExceptionPrefix: String read write
C#:   String ServerExceptionPrefix { get; set; }
VB:   Property ServerExceptionPrefix As String


Class Methods

HasEnvelope



Oxygene:   class method HasEnvelope(data: array of Byte): Boolean
C#:   static Boolean HasEnvelope(array of Byte data)
VB:   Shared Function HasEnvelope(data As array of Byte) As Boolean


Parameters:

  • data:


MessageMatchingTargetUri



Oxygene:   class method MessageMatchingTargetUri(uri: Uri): IMessage
C#:   static IMessage MessageMatchingTargetUri(Uri uri)
VB:   Shared Function MessageMatchingTargetUri(uri As Uri) As IMessage


Parameters:

  • uri:


MessageMatchingTargetUrl



Oxygene:   class method MessageMatchingTargetUrl(url: String): IMessage
C#:   static IMessage MessageMatchingTargetUrl(String url)
VB:   Shared Function MessageMatchingTargetUrl(url As String) As IMessage


Parameters:

  • url:


Instance Methods

constructor   protected



Oxygene:   constructor
C#:   constructor()
VB:   Sub New


CheckForEnvelope   protected



Oxygene:   method CheckForEnvelope(stream: Stream; out envelopeName: String): Boolean
C#:   Boolean CheckForEnvelope(Stream stream, out String envelopeName)
VB:   Function CheckForEnvelope(stream As Stream, <OutAttribute> ByRef envelopeName As String) As Boolean


Parameters:

  • stream:
  • envelopeName:


Clear

Clears all internal data structures and prepare the Message class to handle the processing of a new message.


Oxygene:   method Clear
C#:   void Clear()
VB:   Sub Clear


ClearAttributes



Oxygene:   method ClearAttributes(channel: IChannel)
C#:   void ClearAttributes(IChannel channel)
VB:   Sub ClearAttributes(channel As IChannel)


Parameters:

  • channel:


Clone

Creates and returns an identical copy of the message.


Oxygene:   method Clone: IMessage
C#:   IMessage Clone()
VB:   Function Clone As IMessage


CloneFrom   protected



Oxygene:   method CloneFrom(message: Message)
C#:   void CloneFrom(Message message)
VB:   Sub CloneFrom(message As Message)


Parameters:

  • message:


CreateException   protected



Oxygene:   method CreateException(exceptionName: String; message: String): Exception
C#:   Exception CreateException(String exceptionName, String message)
VB:   Function CreateException(exceptionName As String, message As String) As Exception


Parameters:

  • exceptionName:
  • message:


DoReadFromStream   protected



Oxygene:   method DoReadFromStream(stream: Stream)
C#:   void DoReadFromStream(Stream stream)
VB:   Sub DoReadFromStream(stream As Stream)


Parameters:

  • stream:


DoWriteToStream   protected



Oxygene:   method DoWriteToStream(stream: Stream)
C#:   void DoWriteToStream(Stream stream)
VB:   Sub DoWriteToStream(stream As Stream)


Parameters:

  • stream:


FinalizeMessage

This method should be implemented to ensure that the message content is complete before sending it by doing any final processing necessary. FinalizeMessage is called after all Parameters have been written to a Message and before the message will be sent. It should perform any necessary wrap-up to ensure that a subsequent call to WriteToStream() will produce a complete message.


Oxygene:   method FinalizeMessage
C#:   void FinalizeMessage()
VB:   Sub FinalizeMessage


FinalizeRequest



Oxygene:   method FinalizeRequest(channel: IRequest)
C#:   void FinalizeRequest(IRequest channel)
VB:   Sub FinalizeRequest(channel As IRequest)


Parameters:

  • channel:


GetStream

Creates a new stream with the content of the message.


Oxygene:   method GetStream: Stream
C#:   Stream GetStream()
VB:   Function GetStream As Stream


InitializeEventMessage (IChannel, String, String)

Should be implemented by Message components to initialize a Event message.


Oxygene:   method InitializeEventMessage(channel: IChannel; interfaceName: String; messageName: String)
C#:   void InitializeEventMessage(IChannel channel, String interfaceName, String messageName)
VB:   Sub InitializeEventMessage(channel As IChannel, interfaceName As String, messageName As String)


Parameters:

  • channel:
  • interfaceName:
  • messageName:


InitializeEventMessage (IChannel, String, String, String)



Oxygene:   method InitializeEventMessage(channel: IChannel; libraryName: String; interfaceName: String; messageName: String)
C#:   void InitializeEventMessage(IChannel channel, String libraryName, String interfaceName, String messageName)
VB:   Sub InitializeEventMessage(channel As IChannel, libraryName As String, interfaceName As String, messageName As String)


Parameters:

  • channel:
  • libraryName:
  • interfaceName:
  • messageName:


InitializeExceptionMessage (IChannel, String, String, Exception)

Should be implemented by Message components to initialize a Exception message.


Oxygene:   method InitializeExceptionMessage(channel: IChannel; interfaceName: String; messageName: String; exception: Exception)
C#:   void InitializeExceptionMessage(IChannel channel, String interfaceName, String messageName, Exception exception)
VB:   Sub InitializeExceptionMessage(channel As IChannel, interfaceName As String, messageName As String, exception As Exception)


Parameters:

  • channel:
  • interfaceName:
  • messageName:
  • exception:


InitializeExceptionMessage (IChannel, String, String, String, Exception)



Oxygene:   method InitializeExceptionMessage(channel: IChannel; libraryName: String; interfaceName: String; messageName: String; exception: Exception)
C#:   void InitializeExceptionMessage(IChannel channel, String libraryName, String interfaceName, String messageName, Exception exception)
VB:   Sub InitializeExceptionMessage(channel As IChannel, libraryName As String, interfaceName As String, messageName As String, exception As Exception)


Parameters:

  • channel:
  • libraryName:
  • interfaceName:
  • messageName:
  • exception:


InitializeMessage (IChannel, String, String, MessageType)



Oxygene:   method InitializeMessage(channel: IChannel; interfaceName: String; messageName: String; messageType: MessageType)
C#:   void InitializeMessage(IChannel channel, String interfaceName, String messageName, MessageType messageType)
VB:   Sub InitializeMessage(channel As IChannel, interfaceName As String, messageName As String, messageType As MessageType)


Parameters:

  • channel:
  • interfaceName:
  • messageName:
  • messageType:


InitializeMessage (IChannel, String, String, String, MessageType)



Oxygene:   method InitializeMessage(channel: IChannel; libraryName: String; interfaceName: String; messageName: String; messageType: MessageType)
C#:   void InitializeMessage(IChannel channel, String libraryName, String interfaceName, String messageName, MessageType messageType)
VB:   Sub InitializeMessage(channel As IChannel, libraryName As String, interfaceName As String, messageName As String, messageType As MessageType)


Parameters:

  • channel:
  • libraryName:
  • interfaceName:
  • messageName:
  • messageType:


InitializeMessageEx



Oxygene:   method InitializeMessageEx(channel: IChannel; messageType: MessageType)
C#:   void InitializeMessageEx(IChannel channel, MessageType messageType)
VB:   Sub InitializeMessageEx(channel As IChannel, messageType As MessageType)


Parameters:

  • channel:
  • messageType:


InitializeRead



Oxygene:   method InitializeRead(channel: IChannel)
C#:   void InitializeRead(IChannel channel)
VB:   Sub InitializeRead(channel As IChannel)


Parameters:

  • channel:


InitializeRequest



Oxygene:   method InitializeRequest(channel: IRequest)
C#:   void InitializeRequest(IRequest channel)
VB:   Sub InitializeRequest(channel As IRequest)


Parameters:

  • channel:


InitializeRequestMessage (IChannel, String, String)

Should be implemented by Message components to initialize a Request message.


Oxygene:   method InitializeRequestMessage(channel: IChannel; interfaceName: String; messageName: String)
C#:   void InitializeRequestMessage(IChannel channel, String interfaceName, String messageName)
VB:   Sub InitializeRequestMessage(channel As IChannel, interfaceName As String, messageName As String)


Parameters:

  • channel:
  • interfaceName:
  • messageName:


InitializeRequestMessage (IChannel, String, String, String)



Oxygene:   method InitializeRequestMessage(channel: IChannel; libraryName: String; interfaceName: String; messageName: String)
C#:   void InitializeRequestMessage(IChannel channel, String libraryName, String interfaceName, String messageName)
VB:   Sub InitializeRequestMessage(channel As IChannel, libraryName As String, interfaceName As String, messageName As String)


Parameters:

  • channel:
  • libraryName:
  • interfaceName:
  • messageName:


InitializeResponseMessage (IChannel, String, String)

Should be implemented by Message components to initialize a Response message.


Oxygene:   method InitializeResponseMessage(channel: IChannel; interfaceName: String; messageName: String)
C#:   void InitializeResponseMessage(IChannel channel, String interfaceName, String messageName)
VB:   Sub InitializeResponseMessage(channel As IChannel, interfaceName As String, messageName As String)


Parameters:

  • channel:
  • interfaceName:
  • messageName:


InitializeResponseMessage (IChannel, String, String, String)



Oxygene:   method InitializeResponseMessage(channel: IChannel; libraryName: String; interfaceName: String; messageName: String)
C#:   void InitializeResponseMessage(IChannel channel, String libraryName, String interfaceName, String messageName)
VB:   Sub InitializeResponseMessage(channel As IChannel, libraryName As String, interfaceName As String, messageName As String)


Parameters:

  • channel:
  • libraryName:
  • interfaceName:
  • messageName:


ProcessException   protected



Oxygene:   method ProcessException
C#:   void ProcessException()
VB:   Sub ProcessException


Read

Calls the appropriate method for reading the given Type (such as ReadString or ReadInt32). If the type is unsupported, an exception is raised. Objects can be written to the Serializer using the Write method. You will usually not need to override this method when implementing a custom Serializer.


Oxygene:   method Read(name: String; type: Type; format: StreamingFormat): Object
C#:   Object Read(String name, Type type, StreamingFormat format)
VB:   Function Read(name As String, type As Type, format As StreamingFormat) As Object


Parameters:

  • name:
  • type:
  • format:


ReadAnsiString

Should be implemented to read an ANSI String value from the message.


Oxygene:   method ReadAnsiString(name: String): String
C#:   String ReadAnsiString(String name)
VB:   Function ReadAnsiString(name As String) As String


Parameters:

  • name:


ReadBoolean



Oxygene:   method ReadBoolean(name: String): Boolean
C#:   Boolean ReadBoolean(String name)
VB:   Function ReadBoolean(name As String) As Boolean


Parameters:

  • name:


ReadCurrency



Oxygene:   method ReadCurrency(name: String): Decimal
C#:   Decimal ReadCurrency(String name)
VB:   Function ReadCurrency(name As String) As Decimal


Parameters:

  • name:


ReadDateTime



Oxygene:   method ReadDateTime(name: String): DateTime
C#:   DateTime ReadDateTime(String name)
VB:   Function ReadDateTime(name As String) As DateTime


Parameters:

  • name:


ReadDecimal



Oxygene:   method ReadDecimal(name: String): Decimal
C#:   Decimal ReadDecimal(String name)
VB:   Function ReadDecimal(name As String) As Decimal


Parameters:

  • name:


ReadDouble



Oxygene:   method ReadDouble(name: String): Double
C#:   Double ReadDouble(String name)
VB:   Function ReadDouble(name As String) As Double


Parameters:

  • name:


ReadEnum



Oxygene:   method ReadEnum(name: String; type: Type): Enum
C#:   Enum ReadEnum(String name, Type type)
VB:   Function ReadEnum(name As String, type As Type) As Enum


Parameters:

  • name:
  • type:


ReadException

Reads the message as an exception and then returns a new exception instance properly initialized with the message values. If no valid exception information can be found in the message, this method returns null.


Oxygene:   method ReadException: Exception
C#:   Exception ReadException()
VB:   Function ReadException As Exception


ReadFromStream

Should be implemented to read the contents of the message from the given stream.


Oxygene:   method ReadFromStream(stream: Stream)
C#:   void ReadFromStream(Stream stream)
VB:   Sub ReadFromStream(stream As Stream)


Parameters:

  • stream:


ReadGuid



Oxygene:   method ReadGuid(name: String): Guid
C#:   Guid ReadGuid(String name)
VB:   Function ReadGuid(name As String) As Guid


Parameters:

  • name:


ReadInt32



Oxygene:   method ReadInt32(name: String): Int32
C#:   Int32 ReadInt32(String name)
VB:   Function ReadInt32(name As String) As Int32


Parameters:

  • name:


ReadInt64



Oxygene:   method ReadInt64(name: String): Int64
C#:   Int64 ReadInt64(String name)
VB:   Function ReadInt64(name As String) As Int64


Parameters:

  • name:


ReadUtf8String



Oxygene:   method ReadUtf8String(name: String): String
C#:   String ReadUtf8String(String name)
VB:   Function ReadUtf8String(name As String) As String


Parameters:

  • name:


ReadVariant



Oxygene:   method ReadVariant(name: String): Object
C#:   Object ReadVariant(String name)
VB:   Function ReadVariant(name As String) As Object


Parameters:

  • name:


ReadWideString

Should be implemented to read an Unicode Wide String value from the message.


Oxygene:   method ReadWideString(name: String): String
C#:   String ReadWideString(String name)
VB:   Function ReadWideString(name As String) As String


Parameters:

  • name:


ReadXml



Oxygene:   method ReadXml(name: String): XmlNode
C#:   XmlNode ReadXml(String name)
VB:   Function ReadXml(name As String) As XmlNode


Parameters:

  • name:


SetAttributes



Oxygene:   method SetAttributes(channel: IChannel; attributeNames: array of String; attributeValues: array of String)
C#:   void SetAttributes(IChannel channel, array of String attributeNames, array of String attributeValues)
VB:   Sub SetAttributes(channel As IChannel, attributeNames As array of String, attributeValues As array of String)


Parameters:

  • channel:
  • attributeNames:
  • attributeValues:


TriggerAfterReadMessageParam (String, Object)   protected



Oxygene:   method TriggerAfterReadMessageParam(name: String; parameter: Object)
C#:   void TriggerAfterReadMessageParam(String name, Object parameter)
VB:   Sub TriggerAfterReadMessageParam(name As String, parameter As Object)


Parameters:

  • name:
  • parameter:


TriggerAfterReadMessageParam (String, Object, Type)   protected



Oxygene:   method TriggerAfterReadMessageParam(name: String; parameter: Object; type: Type)
C#:   void TriggerAfterReadMessageParam(String name, Object parameter, Type type)
VB:   Sub TriggerAfterReadMessageParam(name As String, parameter As Object, type As Type)


Parameters:

  • name:
  • parameter:
  • type:


TriggerAfterReadMessageParam (String, Object, Type, StreamingFormat)   protected



Oxygene:   method TriggerAfterReadMessageParam(name: String; parameter: Object; type: Type; format: StreamingFormat)
C#:   void TriggerAfterReadMessageParam(String name, Object parameter, Type type, StreamingFormat format)
VB:   Sub TriggerAfterReadMessageParam(name As String, parameter As Object, type As Type, format As StreamingFormat)


Parameters:

  • name:
  • parameter:
  • type:
  • format:


TriggerAfterUnwrapEnvelopes   protected



Oxygene:   method TriggerAfterUnwrapEnvelopes(stream: Stream)
C#:   void TriggerAfterUnwrapEnvelopes(Stream stream)
VB:   Sub TriggerAfterUnwrapEnvelopes(stream As Stream)


Parameters:

  • stream:


TriggerAfterWrapEnvelopes   protected



Oxygene:   method TriggerAfterWrapEnvelopes(stream: Stream)
C#:   void TriggerAfterWrapEnvelopes(Stream stream)
VB:   Sub TriggerAfterWrapEnvelopes(stream As Stream)


Parameters:

  • stream:


TriggerBeforeUnwrapEnvelopes   protected



Oxygene:   method TriggerBeforeUnwrapEnvelopes(stream: Stream)
C#:   void TriggerBeforeUnwrapEnvelopes(Stream stream)
VB:   Sub TriggerBeforeUnwrapEnvelopes(stream As Stream)


Parameters:

  • stream:


TriggerBeforeWrapEnvelopes   protected



Oxygene:   method TriggerBeforeWrapEnvelopes(stream: Stream)
C#:   void TriggerBeforeWrapEnvelopes(Stream stream)
VB:   Sub TriggerBeforeWrapEnvelopes(stream As Stream)


Parameters:

  • stream:


TriggerBeforeWriteMessageParam (String, Object)   protected



Oxygene:   method TriggerBeforeWriteMessageParam(name: String; parameter: Object)
C#:   void TriggerBeforeWriteMessageParam(String name, Object parameter)
VB:   Sub TriggerBeforeWriteMessageParam(name As String, parameter As Object)


Parameters:

  • name:
  • parameter:


TriggerBeforeWriteMessageParam (String, Object, Type)   protected



Oxygene:   method TriggerBeforeWriteMessageParam(name: String; parameter: Object; type: Type)
C#:   void TriggerBeforeWriteMessageParam(String name, Object parameter, Type type)
VB:   Sub TriggerBeforeWriteMessageParam(name As String, parameter As Object, type As Type)


Parameters:

  • name:
  • parameter:
  • type:


TriggerBeforeWriteMessageParam (String, Object, Type, StreamingFormat)   protected



Oxygene:   method TriggerBeforeWriteMessageParam(name: String; parameter: Object; type: Type; format: StreamingFormat)
C#:   void TriggerBeforeWriteMessageParam(String name, Object parameter, Type type, StreamingFormat format)
VB:   Sub TriggerBeforeWriteMessageParam(name As String, parameter As Object, type As Type, format As StreamingFormat)


Parameters:

  • name:
  • parameter:
  • type:
  • format:


TriggerOnFinalizeMessage   protected



Oxygene:   method TriggerOnFinalizeMessage
C#:   void TriggerOnFinalizeMessage()
VB:   Sub TriggerOnFinalizeMessage


TriggerOnInitializeMessage   protected



Oxygene:   method TriggerOnInitializeMessage(channel: IChannel; interfaceName: String; messageName: String; exception: Exception)
C#:   void TriggerOnInitializeMessage(IChannel channel, String interfaceName, String messageName, Exception exception)
VB:   Sub TriggerOnInitializeMessage(channel As IChannel, interfaceName As String, messageName As String, exception As Exception)


Parameters:

  • channel:
  • interfaceName:
  • messageName:
  • exception:


UnwrapEnvelopes   protected



Oxygene:   method UnwrapEnvelopes(stream: Stream): Stream
C#:   Stream UnwrapEnvelopes(Stream stream)
VB:   Function UnwrapEnvelopes(stream As Stream) As Stream


Parameters:

  • stream:


Validate



Oxygene:   method Validate(content: String): Boolean
C#:   Boolean Validate(String content)
VB:   Function Validate(content As String) As Boolean


Parameters:

  • content:


WrapEnvelopes   protected



Oxygene:   method WrapEnvelopes(stream: Stream): Stream
C#:   Stream WrapEnvelopes(Stream stream)
VB:   Function WrapEnvelopes(stream As Stream) As Stream


Parameters:

  • stream:


Write



Oxygene:   method Write(name: String; value: Object; type: Type; format: StreamingFormat)
C#:   void Write(String name, Object value, Type type, StreamingFormat format)
VB:   Sub Write(name As String, value As Object, type As Type, format As StreamingFormat)


Parameters:

  • name:
  • value:
  • type:
  • format:


WriteAnsiString

Should be implemented to write an ANSI String value to the message.


Oxygene:   method WriteAnsiString(name: String; value: String)
C#:   void WriteAnsiString(String name, String value)
VB:   Sub WriteAnsiString(name As String, value As String)


Parameters:

  • name:
  • value:


WriteBoolean



Oxygene:   method WriteBoolean(name: String; value: Boolean)
C#:   void WriteBoolean(String name, Boolean value)
VB:   Sub WriteBoolean(name As String, value As Boolean)


Parameters:

  • name:
  • value:


WriteCurrency



Oxygene:   method WriteCurrency(name: String; value: Decimal)
C#:   void WriteCurrency(String name, Decimal value)
VB:   Sub WriteCurrency(name As String, value As Decimal)


Parameters:

  • name:
  • value:


WriteDateTime



Oxygene:   method WriteDateTime(name: String; value: DateTime)
C#:   void WriteDateTime(String name, DateTime value)
VB:   Sub WriteDateTime(name As String, value As DateTime)


Parameters:

  • name:
  • value:


WriteDecimal



Oxygene:   method WriteDecimal(name: String; value: Decimal)
C#:   void WriteDecimal(String name, Decimal value)
VB:   Sub WriteDecimal(name As String, value As Decimal)


Parameters:

  • name:
  • value:


WriteDouble



Oxygene:   method WriteDouble(name: String; value: Double)
C#:   void WriteDouble(String name, Double value)
VB:   Sub WriteDouble(name As String, value As Double)


Parameters:

  • name:
  • value:


WriteEnum



Oxygene:   method WriteEnum(name: String; value: Enum)
C#:   void WriteEnum(String name, Enum value)
VB:   Sub WriteEnum(name As String, value As Enum)


Parameters:

  • name:
  • value:


WriteEnvelopeHeader



Oxygene:   method WriteEnvelopeHeader(envelope: MessageEnvelope; stream: Stream)
C#:   void WriteEnvelopeHeader(MessageEnvelope envelope, Stream stream)
VB:   Sub WriteEnvelopeHeader(envelope As MessageEnvelope, stream As Stream)


Parameters:

  • envelope:
  • stream:


WriteException



Oxygene:   method WriteException(exception: Exception)
C#:   void WriteException(Exception exception)
VB:   Sub WriteException(exception As Exception)


Parameters:

  • exception:


WriteGuid



Oxygene:   method WriteGuid(name: String; value: Guid)
C#:   void WriteGuid(String name, Guid value)
VB:   Sub WriteGuid(name As String, value As Guid)


Parameters:

  • name:
  • value:


WriteInt32



Oxygene:   method WriteInt32(name: String; value: Int32)
C#:   void WriteInt32(String name, Int32 value)
VB:   Sub WriteInt32(name As String, value As Int32)


Parameters:

  • name:
  • value:


WriteInt64



Oxygene:   method WriteInt64(name: String; value: Int64)
C#:   void WriteInt64(String name, Int64 value)
VB:   Sub WriteInt64(name As String, value As Int64)


Parameters:

  • name:
  • value:


WriteToStream



Oxygene:   method WriteToStream(stream: Stream)
C#:   void WriteToStream(Stream stream)
VB:   Sub WriteToStream(stream As Stream)


Parameters:

  • stream:


WriteUtf8String



Oxygene:   method WriteUtf8String(name: String; value: String)
C#:   void WriteUtf8String(String name, String value)
VB:   Sub WriteUtf8String(name As String, value As String)


Parameters:

  • name:
  • value:


WriteVariant



Oxygene:   method WriteVariant(name: String; value: Object)
C#:   void WriteVariant(String name, Object value)
VB:   Sub WriteVariant(name As String, value As Object)


Parameters:

  • name:
  • value:


WriteWideString



Oxygene:   method WriteWideString(name: String; value: String)
C#:   void WriteWideString(String name, String value)
VB:   Sub WriteWideString(name As String, value As String)


Parameters:

  • name:
  • value:


WriteXml



Oxygene:   method WriteXml(name: String; value: XmlNode)
C#:   void WriteXml(String name, XmlNode value)
VB:   Sub WriteXml(name As String, value As XmlNode)


Parameters:

  • name:
  • value:


Events

AfterReadMessageParam

Gets triggered after a parameter was read from the incoming message. You can use this event to inspect the parameter name, type and value.



Oxygene:   event AfterReadMessageParam: EventHandler<MessageParamEventArgs>
C#:   event EventHandler<MessageParamEventArgs> AfterReadMessageParam
VB:   Event AfterReadMessageParam As EventHandler<MessageParamEventArgs>


AfterUnwrapEnvelopes



Oxygene:   event AfterUnwrapEnvelopes: EventHandler<StreamOperationEventArgs>
C#:   event EventHandler<StreamOperationEventArgs> AfterUnwrapEnvelopes
VB:   Event AfterUnwrapEnvelopes As EventHandler<StreamOperationEventArgs>


AfterWrapEnvelopes



Oxygene:   event AfterWrapEnvelopes: EventHandler<StreamOperationEventArgs>
C#:   event EventHandler<StreamOperationEventArgs> AfterWrapEnvelopes
VB:   Event AfterWrapEnvelopes As EventHandler<StreamOperationEventArgs>


BeforeUnwrapEnvelopes



Oxygene:   event BeforeUnwrapEnvelopes: EventHandler<StreamOperationEventArgs>
C#:   event EventHandler<StreamOperationEventArgs> BeforeUnwrapEnvelopes
VB:   Event BeforeUnwrapEnvelopes As EventHandler<StreamOperationEventArgs>


BeforeWrapEnvelopes



Oxygene:   event BeforeWrapEnvelopes: EventHandler<StreamOperationEventArgs>
C#:   event EventHandler<StreamOperationEventArgs> BeforeWrapEnvelopes
VB:   Event BeforeWrapEnvelopes As EventHandler<StreamOperationEventArgs>


BeforeWriteMessageParam

Gets triggered before a parameter gets written to the outgoing message. You can use this event to inspect the parameter name, type and value.



Oxygene:   event BeforeWriteMessageParam: EventHandler<MessageParamEventArgs>
C#:   event EventHandler<MessageParamEventArgs> BeforeWriteMessageParam
VB:   Event BeforeWriteMessageParam As EventHandler<MessageParamEventArgs>


OnFinalizeMessage

Gets triggered when FinalizeMessage method was called to finalize an outgoing message just before it will be actually sent across the wire to the remote system.



Oxygene:   event OnFinalizeMessage: EventHandler<EventArgs>
C#:   event EventHandler<EventArgs> OnFinalizeMessage
VB:   Event OnFinalizeMessage As EventHandler<EventArgs>


OnInitializeMessage

Gets triggered when InitializeMessage method is called to initialize an outgoing message. You can hook into this event to inspect information such as the service name and message (method) name, as well as the channel that the message is being dispatched through.



Oxygene:   event OnInitializeMessage: EventHandler<InitMessageEventArgs>
C#:   event EventHandler<InitMessageEventArgs> OnInitializeMessage
VB:   Event OnInitializeMessage As EventHandler<InitMessageEventArgs>


Descendants


See Also


Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript

GlossaryArticlesLibrarySamples

Personal tools
Namespaces

Variants
Actions
Navigation
products
platforms
special
Toolbox