Class CopperMessageHeader
Represents the content of a Copper SOAP header.
Inheritance
Namespace: Copper.Common.Context
Assembly: Copper.Common.dll
Syntax
public class CopperMessageHeader : MessageHeader
Constructors
View SourceCopperMessageHeader(String, String, Object)
Initializes a new instance of the Copper
Declaration
protected CopperMessageHeader(string name, string ns, object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The local name of the header XML element. |
System. |
ns | The namespace URI of the header XML element. |
System. |
value | The content of the header to be created. |
Properties
View SourceName
Gets the name of the message header.
Declaration
public override string Name { get; }
Property Value
Type | Description |
---|---|
System. |
The name of the message header. |
Namespace
Gets the namespace of the message header.
Declaration
public override string Namespace { get; }
Property Value
Type | Description |
---|---|
System. |
The namespace of the message header. |
TypeNamespacePrefix
Gets the Copper type namespace prefix.
Declaration
public static string TypeNamespacePrefix { get; }
Property Value
Type | Description |
---|---|
System. |
The Copper type namespace prefix. |
Methods
View SourceCreateHeader(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. |
name | The local name of the header XML element. |
System. |
ns | The namespace URI of the header XML element. |
System. |
value | The content of the header to be created. |
Returns
Type | Description |
---|---|
Copper |
A Copper |
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. |
writer | An System. |
Message |
messageVersion | The object that contains information related to the version of SOAP associated with a message and its exchange. |