Click or drag to resize
EventFormatter Methods

The EventFormatter type exposes the following members.

Methods
  NameDescription
Public methodAppendElement
Append an empty complex element of the appropriate type to the element which represents an array of 'Element' type.
Public methodAppendMessage(String, Topic)
Appends a (empty) message of the specified 'messageType' that will be published under the specified 'topic' to the event referenced by this EventFormatter. After a message has been appended its elements can be set using the various 'SetElement' methods.
Public methodAppendMessage(Name, Topic)
Appends a (empty) message of the specified 'messageType' that will be published under the specified 'topic' to the event referenced by this EventFormatter. After a message has been appended its elements can be set using the various 'SetElement' methods.
Public methodAppendMessage(String, Topic, NullableInt32)
Appends a (empty) message of the specified 'messageType' that will be published under the specified 'topic' with the specified 'sequenceNumber' to the event referenced by this EventFormatter. After a message has been appended its elements can be set using the various 'SetElement' methods. The behavior is undefined unless the 'sequenceNumber' is greater (unless the value wrapped) than the last value used in any previous message on this 'topic'.
Public methodAppendMessage(Name, Topic, NullableInt32)
Appends a (empty) message of the specified 'messageType' that will be published under the specified 'topic' with the specified 'sequenceNumber' to the event referenced by this EventFormatter. After a message has been appended its elements can be set using the various 'SetElement' methods. The behavior is undefined unless the 'sequenceNumber' is greater (unless the value wrapped) than the last value used in any previous message on this 'topic'.
Public methodAppendRecapMessage(Topic, CorrelationID)
Appends a (empty) recap message that will be published under the specified 'topic' to the event referenced by this EventFormatter. Specifies the optional 'cid' if this recap message is added in response to a 'TopicRecap' message. After a message has been appended its elements can be set using the various 'SetElement' methods. It is an error to create append a recap message to an admin event.
Public methodAppendRecapMessage(Topic, NullableInt32, CorrelationID)
Appends a (empty) recap message that will be published under the specified 'topic' to the event referenced by this EventFormatter. Specifies the optional 'cid' if this recap message is added in response to a 'TopicRecap' message. After a message has been appended its elements can be set using the various 'SetElement' methods. It is an error to create append a recap message to an admin event. The behavior is undefined unless the 'sequenceNumber' is greater (unless the value wrapped) than the last value used in any previous message on this 'topic'.
Public methodAppendResponse(String)
Appends a (empty) response message of the specified 'messageType' that will be sent in response to previously received operation request. After a message has been appended its elements can be set using the various 'SetElement' methods. Only one response can be appended to an event.
Public methodAppendResponse(Name)
Appends a (empty) response message of the specified 'name' that will be sent in response to previously received operation request. After a message has been appended its elements can be set using the various 'SetElement' methods. Only one response can be appended to an event.
Public methodAppendValue(Boolean)
Appends the specified 'value' to the element which represents an array of 'bool'.
Public methodAppendValue(Char)
Appends the specified 'value' to the element which represents an array of 'char'
Public methodAppendValue(Double)
Appends the specified 'value' to the element which represents an array of 'double'.
Public methodAppendValue(Int32)
Appends the specified 'value' to the element which represents an array of 'int'.
Public methodAppendValue(Int64)
Appends the specified 'value' to the element which represents an array of 'long'
Public methodAppendValue(Single)
Appends the specified 'value' to the element which represents an array of 'float'.
Public methodAppendValue(String)
Appends the specified 'value' to the element which represents an array of 'String'
Public methodAppendValue(Datetime)
Appends the specified 'value' to the element which represents an array of 'Datetime'.
Public methodAppendValue(Name)
Appends the specified 'value' to the element which represents an array of 'Name'.
Public methodPopElement
Returns this formatter's context back to the location where it was before the most recent call to 'PushElement' or 'AppendElement()'.
Public methodPushElement(String)
Changes the level at which this formatter is operating to the specified element 'name'. After this returns the context of this formatter is set to the element 'name' in the schema and subsequent calls to 'SetElement' or 'PushElement' are applied at that level. If 'name' represents an array of scalars then 'AppendValue' must be used to add values. If 'name' represents an array of complex types then 'AppendElement()' creates the first entry and set the context of the formatter to that element. Calling 'AppendElement()' again will create another entry.
Public methodPushElement(Name)
Changes the level at which this formatter is operating to the specified element 'name'. After this returns the context of this formatter is set to the element 'name' in the schema and subsequent calls to 'SetElement' or 'PushElement' are applied at that level. If 'name' represents an array of scalars then 'AppendValue' must be used to add values. If 'name' represents an array of complex types then 'AppendElement()' creates the first entry and set the context of the formatter to that element. Calling 'AppendElement()' again will create another entry.
Public methodSetElement(String, Datetime)
Sets the element with the specified 'name' within the current element to the specified 'value'. The behavior of this function is undefined if 'value' is 'null'. Note that this function is not intended for publication of null values; uses SetElementNull(String) instead.
Public methodSetElement(String, Name)
Sets the element with the specified 'name' within the current element to the specified 'value'. The behavior of this function is undefined if 'value' is 'null'. Note that this function is not intended for publication of null values; uses SetElementNull(String) instead.
Public methodSetElement(String, Boolean)
Sets the element with the specified 'name' within the current element to the specified 'value'.
Public methodSetElement(String, Char)
Sets the element with the specified 'name' within the current element to the specified 'value'.
Public methodSetElement(String, Double)
Sets the element with the specified 'name' within the current element to the specified 'value'.
Public methodSetElement(String, Int32)
Sets the element with the specified 'name' within the current element to the specified 'value'.
Public methodSetElement(String, Int64)
Sets the element with the specified 'name' within the current element to the specified 'value'.
Public methodSetElement(String, Single)
Sets the element with the specified 'name' within the current element to the specified 'value'.
Public methodSetElement(String, String)
Sets the element with the specified 'name' within the current element to the specified 'value'. The behavior of this function is undefined if 'value' is 'null'. Note that this function is not intended for publication of null values; uses SetElementNull(String) instead.
Public methodSetElement(Name, Datetime)
Sets the element with the specified 'name' within the current element to the specified 'value'. The behavior of this function is undefined if 'value' is 'null'. Note that this function is not intended for publication of null values; uses SetElementNull(String) instead.
Public methodSetElement(Name, Name)
Sets the element with the specified 'name' within the current element to the specified 'value'. The behavior of this function is undefined if 'value' is 'null'. Note that this function is not intended for publication of null values; uses SetElementNull(Name) instead.
Public methodSetElement(Name, Boolean)
Sets the element with the specified 'name' within the current element to the specified 'value'.
Public methodSetElement(Name, Char)
Sets the element with the specified 'name' within the current element to the specified 'value'.
Public methodSetElement(Name, Double)
Sets the element with the specified 'name' within the current element to the specified 'value'.
Public methodSetElement(Name, Int32)
Sets the element with the specified 'name' within the current element to the specified 'value'.
Public methodSetElement(Name, Int64)
Sets the element with the specified 'name' within the current element to the specified 'value'.
Public methodSetElement(Name, Single)
Sets the element with the specified 'name' within the current element to the specified 'value'.
Public methodSetElement(Name, String)
Sets the element with the specified 'name' within the current element to the specified 'value'. The behavior of this function is undefined if 'value' is 'null'. Note that this function is not intended for publication of null values; uses SetElementNull(Name) instead.
Public methodSetElementNull(String)
Creates a null element with the specified 'name'. Note that whether or not fields containing null values are published to subscribers is dependent upon details of the service and schema configuration.
Public methodSetElementNull(Name)
Creates a null element with the specified 'name'. Note that whether or not fields containing null values are published to subscribers is dependent upon details of the service and schema configuration.
Top
See Also