EndpointAddressBuilder Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
A factory for producing new (immutable) endpoint addresses with specific property values.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The EndpointAddressBuilder type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | EndpointAddressBuilder() | Initializes a new instance of the EndpointAddressBuilder class. |
![]() | EndpointAddressBuilder(EndpointAddress) | Initializes a new instance of the EndpointAddressBuilder class from the values of an existing endpoint address. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToEndpointAddress | Creates a new endpoint address initialized with the property values of the current endpoint address builder. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The new endpoint address builder can have its property values initialized from the property values of an existing endpoint address using the EndpointAddressBuilder(EndpointAddress) constructor.
Create endpoint addresses with this factory class using the ToEndpointAddress() method. These endpoint addresses can have their URI value set before invoking this method by using the Uri property of the endpoint address builder.
A collection of optional headers can be used to provide additional, more detailed addressing information to identify or interact with the endpoint. Address headers for the endpoints can be set using the EndpointAddressBuilder(EndpointAddress) constructor and retrieved using the Headers property.
Note that EndpointAddress is an immutable class, so its properties cannot be changed after initialization.
Capabilities
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
ID_CAP_NETWORKING | Windows Phone 8, Windows Phone OS 7.1 |
For more info, see App capabilities and hardware requirements for Windows Phone 8.


