Show / Hide Table of Contents

    Class CopperMessageHeader

    Represents the content of a Copper SOAP header.

    Inheritance
    System.Object
    CopperMessageHeader
    Namespace: Copper.Common.Context
    Assembly: Copper.Common.dll
    Syntax
    public class CopperMessageHeader : MessageHeader

    Constructors

    View Source

    CopperMessageHeader(String, String, Object)

    Initializes a new instance of the CopperMessageHeader class.

    Declaration
    protected CopperMessageHeader(string name, string ns, object value)
    Parameters
    Type Name Description
    System.String name

    The local name of the header XML element.

    System.String ns

    The namespace URI of the header XML element.

    System.Object value

    The content of the header to be created.

    Properties

    View Source

    Name

    Gets the name of the message header.

    Declaration
    public override string Name { get; }
    Property Value
    Type Description
    System.String

    The name of the message header.

    View Source

    Namespace

    Gets the namespace of the message header.

    Declaration
    public override string Namespace { get; }
    Property Value
    Type Description
    System.String

    The namespace of the message header.

    View Source

    TypeNamespacePrefix

    Gets the Copper type namespace prefix.

    Declaration
    public static string TypeNamespacePrefix { get; }
    Property Value
    Type Description
    System.String

    The Copper type namespace prefix.

    Methods

    View Source

    CreateHeader(String, String, Object)

    Creates a new Copper message header.

    Declaration
    public static CopperMessageHeader CreateHeader(string name, string ns, object value)
    Parameters
    Type Name Description
    System.String name

    The local name of the header XML element.

    System.String ns

    The namespace URI of the header XML element.

    System.Object value

    The content of the header to be created.

    Returns
    Type Description
    CopperMessageHeader

    A CopperMessageHeader object with the specified data.

    View Source

    OnWriteHeaderContents(XmlDictionaryWriter, MessageVersion)

    Called when the header content is serialized using the specified XML writer.

    Declaration
    protected override void OnWriteHeaderContents(XmlDictionaryWriter writer, MessageVersion messageVersion)
    Parameters
    Type Name Description
    System.Xml.XmlDictionaryWriter writer

    An System.Xml.XmlDictionaryWriter that is used to serialize the header contents.

    MessageVersion messageVersion

    The object that contains information related to the version of SOAP associated with a message and its exchange.

    • View Source
    Back to top Generated by DocFX