Opc.Ua.XmlEncoder.XmlEncoder C# (CSharp) Method

XmlEncoder() public method

Initializes the object with a system type to encode and a XML writer.
public XmlEncoder ( XmlQualifiedName root, XmlWriter writer, ServiceMessageContext context ) : System
root System.Xml.XmlQualifiedName
writer System.Xml.XmlWriter
context ServiceMessageContext
return System
        public XmlEncoder(XmlQualifiedName root, XmlWriter writer, ServiceMessageContext context)
        {
            Initialize();

            if (writer == null)
            {
                m_destination = new StringBuilder();
                m_writer = XmlWriter.Create(m_destination);
            }
            else
            {
                m_destination = null;
                m_writer = writer;
            }

            Initialize(root.Name, root.Namespace);
            m_context = context;
        }

Same methods

XmlEncoder::XmlEncoder ( ServiceMessageContext context ) : System
XmlEncoder::XmlEncoder ( System systemType, XmlWriter writer, ServiceMessageContext context ) : System