.NET Based OPC UA Client/Server SDK  3.1.3.516
UnifiedAutomation.UaBase.XmlEncoder Class Reference

Writes objects to a XML stream.

See also
XmlDecoder
More...

Inherits UnifiedAutomation.UaBase.IEncoder, and IDisposable.

Public Member Functions

 XmlEncoder (MessageContext context)
 Initializes a new instance of the XmlEncoder class using the specified context. More...
 
 XmlEncoder (Type systemType, XmlWriter writer, MessageContext context)
 Initializes a new instance of the XmlEncoder class using the specified systemType, writer and context. More...
 
 XmlEncoder (XmlQualifiedName root, XmlWriter writer, MessageContext context)
 Initializes a new instance of the XmlEncoder class using the specified root, writer and context. More...
 
void SetMappingTables (NamespaceTable namespaceUris, StringTable serverUris)
 Initializes the tables used to map namespace and server URIs during encoding. More...
 
string Close ()
 Completes writing and returns the XML text. More...
 
void Dispose ()
 Frees any unmanaged resources. More...
 
void PushNamespace (string namespaceUri)
 Pushes a namespace onto the namespace stack. More...
 
void PopNamespace ()
 Pops a namespace from the namespace stack. More...
 
void WriteBoolean (string fieldName, bool value)
 Writes a boolean to the stream. More...
 
void WriteSByte (string fieldName, sbyte value)
 Writes a sbyte to the stream. More...
 
void WriteByte (string fieldName, byte value)
 Writes a byte to the stream. More...
 
void WriteInt16 (string fieldName, short value)
 Writes a short to the stream. More...
 
void WriteUInt16 (string fieldName, ushort value)
 Writes a ushort to the stream. More...
 
void WriteInt32 (string fieldName, int value)
 Writes an int to the stream. More...
 
void WriteUInt32 (string fieldName, uint value)
 Writes a uint to the stream. More...
 
void WriteInt64 (string fieldName, long value)
 Writes a long to the stream. More...
 
void WriteUInt64 (string fieldName, ulong value)
 Writes a ulong to the stream. More...
 
void WriteFloat (string fieldName, float value)
 Writes a float to the stream. More...
 
void WriteDouble (string fieldName, double value)
 Writes a double to the stream. More...
 
void WriteString (string fieldName, string value)
 Writes a string to the stream. More...
 
void WriteDateTime (string fieldName, DateTime value)
 Writes a UTC date/time to the stream. More...
 
void WriteGuid (string fieldName, Uuid value)
 Writes a GUID to the stream. More...
 
void WriteGuid (string fieldName, Guid value)
 Writes a GUID to the stream. More...
 
void WriteByteString (string fieldName, byte[] value)
 Writes a byte string to the stream. More...
 
void WriteXmlElement (string fieldName, XmlString value)
 Writes an XmlElement to the stream. More...
 
void WriteNodeId (string fieldName, NodeId value)
 Writes an NodeId to the stream. More...
 
void WriteExpandedNodeId (string fieldName, ExpandedNodeId value)
 Writes an ExpandedNodeId to the stream. More...
 
void WriteStatusCode (string fieldName, StatusCode value)
 Writes an StatusCode to the stream. More...
 
void WriteDiagnosticInfo (string fieldName, DiagnosticInfo value)
 Writes an DiagnosticInfo to the stream. More...
 
void WriteQualifiedName (string fieldName, QualifiedName value)
 Writes an QualifiedName to the stream. More...
 
void WriteLocalizedText (string fieldName, LocalizedText value)
 Writes an LocalizedText to the stream. More...
 
void WriteVariant (string fieldName, Variant value)
 Writes an Variant array to the stream. More...
 
void WriteDataValue (string fieldName, DataValue value)
 Writes an DataValue array to the stream. More...
 
void WriteExtensionObject (string fieldName, ExtensionObject value)
 Writes an ExtensionObject to the stream. More...
 
void WriteEncodeable (string fieldName, IEncodeable value, Type systemType)
 Writes an encodeable object to the stream. More...
 
void WriteGenericEncodeable (string fieldName, GenericEncodeableObject value, GenericStructureDataType genericType)
 Writes a generic encodeable object to the stream. More...
 
void WriteEnumerated (string fieldName, Enum value)
 Writes an enumerated value array to the stream. More...
 
void WriteBooleanArray (string fieldName, IList< bool > values)
 Writes a boolean array to the stream. More...
 
void WriteSByteArray (string fieldName, IList< sbyte > values)
 Writes a sbyte array to the stream. More...
 
void WriteByteArray (string fieldName, IList< byte > values)
 Writes a sbyte array to the stream. More...
 
void WriteInt16Array (string fieldName, IList< short > values)
 Writes a short array to the stream. More...
 
void WriteUInt16Array (string fieldName, IList< ushort > values)
 Writes a ushort array to the stream. More...
 
void WriteInt32Array (string fieldName, IList< int > values)
 Writes a int array to the stream. More...
 
void WriteUInt32Array (string fieldName, IList< uint > values)
 Writes a uint array to the stream. More...
 
void WriteInt64Array (string fieldName, IList< long > values)
 Writes a long array to the stream. More...
 
void WriteUInt64Array (string fieldName, IList< ulong > values)
 Writes a ulong array to the stream. More...
 
void WriteFloatArray (string fieldName, IList< float > values)
 Writes a float array to the stream. More...
 
void WriteDoubleArray (string fieldName, IList< double > values)
 Writes a double array to the stream. More...
 
void WriteStringArray (string fieldName, IList< string > values)
 Writes a string array to the stream. More...
 
void WriteDateTimeArray (string fieldName, IList< DateTime > values)
 Writes a UTC date/time array to the stream. More...
 
void WriteGuidArray (string fieldName, IList< Uuid > values)
 Writes a GUID array to the stream. More...
 
void WriteGuidArray (string fieldName, IList< Guid > values)
 Writes a GUID array to the stream. More...
 
void WriteByteStringArray (string fieldName, IList< byte[]> values)
 Writes a byte string array to the stream. More...
 
void WriteXmlElementArray (string fieldName, IList< XmlString > values)
 Writes an XmlElement array to the stream. More...
 
void WriteNodeIdArray (string fieldName, IList< NodeId > values)
 Writes an NodeId array to the stream. More...
 
void WriteExpandedNodeIdArray (string fieldName, IList< ExpandedNodeId > values)
 Writes an ExpandedNodeId array to the stream. More...
 
void WriteStatusCodeArray (string fieldName, IList< StatusCode > values)
 Writes an StatusCode array to the stream. More...
 
void WriteDiagnosticInfoArray (string fieldName, IList< DiagnosticInfo > values)
 Writes an DiagnosticInfo array to the stream. More...
 
void WriteQualifiedNameArray (string fieldName, IList< QualifiedName > values)
 Writes an QualifiedName array to the stream. More...
 
void WriteLocalizedTextArray (string fieldName, IList< LocalizedText > values)
 Writes an LocalizedText array to the stream. More...
 
void WriteVariantArray (string fieldName, IList< Variant > values)
 Writes an Variant array to the stream. More...
 
void WriteDataValueArray (string fieldName, IList< DataValue > values)
 Writes an DataValue array to the stream. More...
 
void WriteExtensionObjectArray (string fieldName, IList< ExtensionObject > values)
 Writes an extension object array to the stream. More...
 
void WriteEncodeableArray (string fieldName, IList< IEncodeable > values, Type systemType)
 Writes an encodeable object array to the stream. More...
 
void WriteGenericEncodeableArray (string fieldName, IList< GenericEncodeableObject > values, GenericStructureDataType genericType)
 Writes an encodeable object array to the stream. More...
 
void WriteEnumeratedArray (string fieldName, Array values, Type systemType)
 Writes an enumerated value array to the stream. More...
 
void WriteVariantContents (object value, TypeInfo typeInfo)
 Writes the contents of an Variant to the stream. More...
 
void WriteExtensionObjectBody (object body)
 Writes the body of an ExtensionObject to the stream. More...
 
void WriteObjectArray (string fieldName, IList< object > values)
 Writes an Variant array to the stream. More...
 
- Public Member Functions inherited from UnifiedAutomation.UaBase.IEncoder
void WriteEncodeable (string fieldName, IEncodeable value, System.Type systemType)
 Writes an encodeable object to the stream. More...
 
void WriteEncodeableArray (string fieldName, IList< IEncodeable > values, System.Type systemType)
 Writes an encodeable object array to the stream. More...
 
void WriteEnumeratedArray (string fieldName, Array values, System.Type systemType)
 Writes an enumerated value array to the stream. More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 An overrideable version of the Dispose. More...
 

Properties

EncodingType EncodingType [get]
 The type of encoding being used. More...
 
MessageContext Context [get]
 The message context associated with the encoder. More...
 
- Properties inherited from UnifiedAutomation.UaBase.IEncoder
EncodingType EncodingType [get]
 The type of encoding being used. More...
 
MessageContext Context [get]
 The message context associated with the encoder. More...
 

Detailed Description

Writes objects to a XML stream.

See also
XmlDecoder

In most cases, if no special communication settings have been made (see MessageContext), the default MessageContext is sufficient.

An example of using an EndpointDescription endpoint for encoding into an XML.

EndpointDescription endpoint = GetEndpointToconnectTo...
MessageContext context = new MessageContext(_currentSession.Application.DefaultEndpointConfiguration);
XmlEncoder encoder = new XmlEncoder(context);
encoder.SetMappingTables(context.NamespaceUris, context.ServerUris);
encoder.PushNamespace(Namespaces.OpcUa);
encoder.WriteEncodeable(nameof(EndpointDescription), endpoint, typeof(EndpointDescription));
System.Xml.XmlDocument document = new System.Xml.XmlDocument();
document.InnerXml = encoder.Close();
using (System.IO.TextWriter tw = new System.IO.StreamWriter("temp.xml", false, System.Text.Encoding.UTF8))
{
document.Save(tw);
}

Constructor & Destructor Documentation

UnifiedAutomation.UaBase.XmlEncoder.XmlEncoder ( MessageContext  context)

Initializes a new instance of the XmlEncoder class using the specified context.

Parameters
contextThe MessageContext containing information for communication.
UnifiedAutomation.UaBase.XmlEncoder.XmlEncoder ( Type  systemType,
XmlWriter  writer,
MessageContext  context 
)

Initializes a new instance of the XmlEncoder class using the specified systemType, writer and context.

Parameters
systemTypeThe System.Type of the XML root element.
writerThe XmlWriter used to create the XML data.
contextThe MessageContext containing information for communication.
UnifiedAutomation.UaBase.XmlEncoder.XmlEncoder ( XmlQualifiedName  root,
XmlWriter  writer,
MessageContext  context 
)

Initializes a new instance of the XmlEncoder class using the specified root, writer and context.

Parameters
rootQualified XML name of the root element.
writerThe XmlWriter used to create the XML data.
contextThe MessageContext containing information for communication.

Member Function Documentation

string UnifiedAutomation.UaBase.XmlEncoder.Close ( )

Completes writing and returns the XML text.

void UnifiedAutomation.UaBase.XmlEncoder.Dispose ( )

Frees any unmanaged resources.

virtual void UnifiedAutomation.UaBase.XmlEncoder.Dispose ( bool  disposing)
protectedvirtual

An overrideable version of the Dispose.

void UnifiedAutomation.UaBase.XmlEncoder.PopNamespace ( )

Pops a namespace from the namespace stack.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.PushNamespace ( string  namespaceUri)

Pushes a namespace onto the namespace stack.

Parameters
namespaceUriThe namespace where the element is located.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.SetMappingTables ( NamespaceTable  namespaceUris,
StringTable  serverUris 
)

Initializes the tables used to map namespace and server URIs during encoding.

Parameters
namespaceUrisThe URIs of the namespaces referenced by the data to be encoded.
serverUrisThe server URIs referenced by the data to be encoded.
void UnifiedAutomation.UaBase.XmlEncoder.WriteBoolean ( string  fieldName,
bool  value 
)

Writes a boolean to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteBooleanArray ( string  fieldName,
IList< bool >  values 
)

Writes a boolean array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteByte ( string  fieldName,
byte  value 
)

Writes a byte to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteByteArray ( string  fieldName,
IList< byte >  values 
)

Writes a sbyte array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteByteString ( string  fieldName,
byte[]  value 
)

Writes a byte string to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteByteStringArray ( string  fieldName,
IList< byte[]>  values 
)

Writes a byte string array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteDataValue ( string  fieldName,
DataValue  value 
)

Writes an DataValue array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteDataValueArray ( string  fieldName,
IList< DataValue values 
)

Writes an DataValue array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteDateTime ( string  fieldName,
DateTime  value 
)

Writes a UTC date/time to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteDateTimeArray ( string  fieldName,
IList< DateTime values 
)

Writes a UTC date/time array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteDiagnosticInfo ( string  fieldName,
DiagnosticInfo  value 
)

Writes an DiagnosticInfo to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteDiagnosticInfoArray ( string  fieldName,
IList< DiagnosticInfo values 
)

Writes an DiagnosticInfo array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteDouble ( string  fieldName,
double  value 
)

Writes a double to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteDoubleArray ( string  fieldName,
IList< double >  values 
)

Writes a double array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteEncodeable ( string  fieldName,
IEncodeable  value,
Type  systemType 
)

Writes an encodeable object to the stream.

void UnifiedAutomation.UaBase.XmlEncoder.WriteEncodeableArray ( string  fieldName,
IList< IEncodeable values,
Type  systemType 
)

Writes an encodeable object array to the stream.

void UnifiedAutomation.UaBase.XmlEncoder.WriteEnumerated ( string  fieldName,
Enum  value 
)

Writes an enumerated value array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteEnumeratedArray ( string  fieldName,
Array  values,
Type  systemType 
)

Writes an enumerated value array to the stream.

void UnifiedAutomation.UaBase.XmlEncoder.WriteExpandedNodeId ( string  fieldName,
ExpandedNodeId  value 
)

Writes an ExpandedNodeId to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteExpandedNodeIdArray ( string  fieldName,
IList< ExpandedNodeId values 
)

Writes an ExpandedNodeId array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteExtensionObject ( string  fieldName,
ExtensionObject  value 
)

Writes an ExtensionObject to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteExtensionObjectArray ( string  fieldName,
IList< ExtensionObject values 
)

Writes an extension object array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteExtensionObjectBody ( object  body)

Writes the body of an ExtensionObject to the stream.

void UnifiedAutomation.UaBase.XmlEncoder.WriteFloat ( string  fieldName,
float  value 
)

Writes a float to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteFloatArray ( string  fieldName,
IList< float >  values 
)

Writes a float array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteGenericEncodeable ( string  fieldName,
GenericEncodeableObject  value,
GenericStructureDataType  genericType 
)

Writes a generic encodeable object to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteGenericEncodeableArray ( string  fieldName,
IList< GenericEncodeableObject values,
GenericStructureDataType  genericType 
)

Writes an encodeable object array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteGuid ( string  fieldName,
Uuid  value 
)

Writes a GUID to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteGuid ( string  fieldName,
Guid  value 
)

Writes a GUID to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteGuidArray ( string  fieldName,
IList< Uuid values 
)

Writes a GUID array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteGuidArray ( string  fieldName,
IList< Guid values 
)

Writes a GUID array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteInt16 ( string  fieldName,
short  value 
)

Writes a short to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteInt16Array ( string  fieldName,
IList< short >  values 
)

Writes a short array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteInt32 ( string  fieldName,
int  value 
)

Writes an int to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteInt32Array ( string  fieldName,
IList< int >  values 
)

Writes a int array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteInt64 ( string  fieldName,
long  value 
)

Writes a long to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteInt64Array ( string  fieldName,
IList< long >  values 
)

Writes a long array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteLocalizedText ( string  fieldName,
LocalizedText  value 
)

Writes an LocalizedText to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteLocalizedTextArray ( string  fieldName,
IList< LocalizedText values 
)

Writes an LocalizedText array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteNodeId ( string  fieldName,
NodeId  value 
)

Writes an NodeId to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteNodeIdArray ( string  fieldName,
IList< NodeId values 
)

Writes an NodeId array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteObjectArray ( string  fieldName,
IList< object >  values 
)

Writes an Variant array to the stream.

void UnifiedAutomation.UaBase.XmlEncoder.WriteQualifiedName ( string  fieldName,
QualifiedName  value 
)

Writes an QualifiedName to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteQualifiedNameArray ( string  fieldName,
IList< QualifiedName values 
)

Writes an QualifiedName array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteSByte ( string  fieldName,
sbyte  value 
)

Writes a sbyte to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteSByteArray ( string  fieldName,
IList< sbyte >  values 
)

Writes a sbyte array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteStatusCode ( string  fieldName,
StatusCode  value 
)

Writes an StatusCode to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteStatusCodeArray ( string  fieldName,
IList< StatusCode values 
)

Writes an StatusCode array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteString ( string  fieldName,
string  value 
)

Writes a string to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteStringArray ( string  fieldName,
IList< string >  values 
)

Writes a string array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteUInt16 ( string  fieldName,
ushort  value 
)

Writes a ushort to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteUInt16Array ( string  fieldName,
IList< ushort >  values 
)

Writes a ushort array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteUInt32 ( string  fieldName,
uint  value 
)

Writes a uint to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteUInt32Array ( string  fieldName,
IList< uint >  values 
)

Writes a uint array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteUInt64 ( string  fieldName,
ulong  value 
)

Writes a ulong to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteUInt64Array ( string  fieldName,
IList< ulong >  values 
)

Writes a ulong array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteVariant ( string  fieldName,
Variant  value 
)

Writes an Variant array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteVariantArray ( string  fieldName,
IList< Variant values 
)

Writes an Variant array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteVariantContents ( object  value,
TypeInfo  typeInfo 
)

Writes the contents of an Variant to the stream.

void UnifiedAutomation.UaBase.XmlEncoder.WriteXmlElement ( string  fieldName,
XmlString  value 
)

Writes an XmlElement to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

void UnifiedAutomation.UaBase.XmlEncoder.WriteXmlElementArray ( string  fieldName,
IList< XmlString values 
)

Writes an XmlElement array to the stream.

Implements UnifiedAutomation.UaBase.IEncoder.

Property Documentation

MessageContext UnifiedAutomation.UaBase.XmlEncoder.Context
get

The message context associated with the encoder.

EncodingType UnifiedAutomation.UaBase.XmlEncoder.EncodingType
get

The type of encoding being used.


The documentation for this class was generated from the following file: