Headers Property
Collapse the table of content
Expand the table of content

EndpointAddress.Headers Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the collection of address headers for the endpoints that the builder can create.

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

'Declaration
Public ReadOnly Property Headers As AddressHeaderCollection

Property Value

Type: System.ServiceModel.Channels.AddressHeaderCollection
The AddressHeaderCollection that contains address information for the endpoint.


			'Use Headers property to create a collection of address headers from the EnpointAddress
			Dim addressHeader3 As AddressHeader = AddressHeader.CreateAddressHeader("specialservice3", "http://localhost:8000/service", 1)
			Dim addressHeader4 As AddressHeader = AddressHeader.CreateAddressHeader("specialservice4", "http://localhost:8000/service", 2)
			Dim addressHeaders2() As AddressHeader = { addressHeader3, addressHeader4 }
			Dim endpointAddressWithHeaders2 As New EndpointAddress(New Uri("http://localhost/silverlightsamples/service3"), addressHeaders2)
			Dim addressHeaderCollection2 As AddressHeaderCollection = endpointAddressWithHeaders.Headers


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft