EndpointAddressBuilder Class

 

A factory for producing new (immutable) endpoint addresses with specific property values.

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

System.Object
  System.ServiceModel.EndpointAddressBuilder

Public Class EndpointAddressBuilder

NameDescription
System_CAPS_pubmethodEndpointAddressBuilder()

Initializes a new instance of the EndpointAddressBuilder class.

System_CAPS_pubmethodEndpointAddressBuilder(EndpointAddress)

Initializes a new instance of the EndpointAddressBuilder class from an existing endpoint address.

NameDescription
System_CAPS_pubpropertyHeaders

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

System_CAPS_pubpropertyIdentity

Gets or sets the identity for the endpoints that the builder can create.

System_CAPS_pubpropertyUri

Gets or sets the URI for the endpoints that the builder can create.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from 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_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetReaderAtExtensions()

Returns the XML dictionary reader that contains the extensions of the endpoint address.

System_CAPS_pubmethodGetReaderAtMetadata()

Returns the reader that contains the metadata associated with the endpoint address.

System_CAPS_pubmethodGetType()

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

System_CAPS_protmethodMemberwiseClone()

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

System_CAPS_pubmethodSetExtensionReader(XmlDictionaryReader)

Specifies the XML dictionary reader that contains the extensions of the endpoint address.

System_CAPS_pubmethodSetMetadataReader(XmlDictionaryReader)

Specifies the XML dictionary reader that contains the metadata associated with the endpoint address.

System_CAPS_pubmethodToEndpointAddress()

Creates a new endpoint address initialized with the property values of the current endpoint address builder.

System_CAPS_pubmethodToString()

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

The new endpoint address can have its property values initialized from the property values of an existing endpoint address using the EndpointAddressBuilder(EndpointAddress) constructor.

The endpoint addresses created can have their URI and identity values set using the Uri and Identity properties of the endpoint address builder. Note that EndpointAddress is an immutable class.

Dim eab As New EndpointAddressBuilder()
eab.Uri = New Uri("http://localhost/Uri")
eab.Headers.Add(AddressHeader.CreateAddressHeader("n", "ns", "val"))

eab.Identity = EndpointIdentity.CreateUpnIdentity("foo")

Dim xdrExtensions As XmlDictionaryReader = eab.GetReaderAtExtensions()

Dim sr As New StringReader("<myExtension xmlns=""myExtNs"" />")
eab.SetExtensionReader(XmlDictionaryReader.CreateDictionaryReader(XmlReader.Create(sr)))

Dim ea As EndpointAddress = eab.ToEndpointAddress()

sr = New StringReader("<myMetadata xmlns=""myMetaNs"" />")
Dim xdrMetaData As XmlDictionaryReader = eab.GetReaderAtMetadata()

eab.SetMetadataReader(XmlDictionaryReader.CreateDictionaryReader(XmlReader.Create(sr)))

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.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: