Windows apps
Collapse the table of content
Expand the table of content

AddressHeader Class

 

Represents a header that encapsulates an address information item used to identify or interact with an endpoint.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

System.Object
  System.ServiceModel.Channels.AddressHeader

public abstract class AddressHeader

NameDescription
System_CAPS_protmethodAddressHeader()

Initializes a new instance of the AddressHeader class.

NameDescription
System_CAPS_pubpropertyName

When implemented, gets the name of the address header.

System_CAPS_pubpropertyNamespace

When implemented, gets the namespace of the address header.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateAddressHeader(Object)

Creates a new instance of the AddressHeader class with a specified value.

System_CAPS_pubmethodSystem_CAPS_staticCreateAddressHeader(Object, XmlObjectSerializer)

Creates a new instance of the AddressHeader class using a specified formatter to serialize the information item from a specified object.

System_CAPS_pubmethodSystem_CAPS_staticCreateAddressHeader(String, String, Object)

Creates a new instance of the AddressHeader class with a specified value, name and namespace.

System_CAPS_pubmethodSystem_CAPS_staticCreateAddressHeader(String, String, Object, XmlObjectSerializer)

Creates a new instance of the AddressHeader class with a specified name and namespace that uses a specified formatter to serialize the information item from a specified object.

System_CAPS_pubmethodEquals(Object)

Determines whether the information item in a specified object is equal to the object contained in the current address header.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetAddressHeaderReader()

Returns an XML reader that can serialize the current address header object.

System_CAPS_pubmethodGetHashCode()

Provides a unique hash code for an address header. (Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetValue<T>()

Deserializes the information item from the current address header to an object of a specified type.

System_CAPS_pubmethodGetValue<T>(XmlObjectSerializer)

Deserializes the information item from the current address header to an object of a specified type that uses a specified formatter to serialize this information.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnWriteAddressHeaderContents(XmlDictionaryWriter)

When overridden in a derived class, is invoked when the address header contents are written to a stream or file.

System_CAPS_protmethodOnWriteStartAddressHeader(XmlDictionaryWriter)

When overridden in a derived class, is invoked when the address header contents begin to be written to a stream or file.

System_CAPS_pubmethodToMessageHeader()

Wraps the address header as a message header.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodWriteAddressHeader(XmlDictionaryWriter)

Writes the address header to a stream or file using a specified XmlDictionaryWriter.

System_CAPS_pubmethodWriteAddressHeader(XmlWriter)

Writes the address header to a stream or file using a specified XmlWriter.

System_CAPS_pubmethodWriteAddressHeaderContents(XmlDictionaryWriter)

Writes the address header contents to a stream or file.

System_CAPS_pubmethodWriteStartAddressHeader(XmlDictionaryWriter)

Starts to write the address header contents to a stream or file.

An AddressHeader is characterized by a name and namespace and has a value that contains optional information used to identify or interact with an endpoint. The name can be accessed by the Name property and the namespace by the Namespace property.

The following example shows how to create address headers, access their properties, add them to a service endpoint and host the service using the endpoint.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft