Compartir a través de


EndpointAddressBuilder Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Inheritance Hierarchy

System.Object
  System.ServiceModel.EndpointAddressBuilder

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

Syntax

'Declaration
Public Class EndpointAddressBuilder
public class EndpointAddressBuilder

The EndpointAddressBuilder type exposes the following members.

Constructors

  Name Description
Public methodSupported by Silverlight for Windows Phone EndpointAddressBuilder() Initializes a new instance of the EndpointAddressBuilder class.
Public methodSupported by Silverlight for Windows Phone EndpointAddressBuilder(EndpointAddress) Initializes a new instance of the EndpointAddressBuilder class from the values of an existing endpoint address.

Top

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone Headers Gets the collection of address headers for the endpoints that the builder can create.
Public propertySupported by Silverlight for Windows Phone Uri Gets or sets the URI for the endpoints that the builder can create.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone 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.)
Public methodSupported by Silverlight for Windows Phone GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone ToEndpointAddress Creates a new endpoint address initialized with the property values of the current endpoint address builder.
Public methodSupported by Silverlight for Windows Phone ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

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

See Also

Reference