EndpointAddressBuilder Class
TOC
Collapse the table of content
Expand the table of content

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.

System::Object
  System.ServiceModel::EndpointAddressBuilder

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

No code example is currently available or this language may not be supported.

The EndpointAddressBuilder type exposes the following members.

  NameDescription
Public methodEndpointAddressBuilder()Initializes a new instance of the EndpointAddressBuilder class.
Public methodEndpointAddressBuilder(EndpointAddress)Initializes a new instance of the EndpointAddressBuilder class from the values of an existing endpoint address.
Top

  NameDescription
Public propertyHeadersGets the collection of address headers for the endpoints that the builder can create.
Public propertyUriGets or sets the URI for the endpoints that the builder can create.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToEndpointAddressCreates a new endpoint address initialized with the property values of the current endpoint address builder.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

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

Show:
© 2017 Microsoft