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

EndpointAddress Class

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

Provides a unique network address that a client uses to communicate with a service endpoint.

System::Object
  System.ServiceModel::EndpointAddress

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

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

The EndpointAddress type exposes the following members.

  NameDescription
Public methodEndpointAddress(String)Initializes a new instance of the EndpointAddress class with a specified URI string.
Public methodEndpointAddress(Uri, array<AddressHeader>)Initializes a new instance of the EndpointAddress class with a specified URI and headers.
Top

  NameDescription
Public propertyStatic memberAnonymousUriGets a version-neutral representation of the anonymous URI.
Public propertyHeadersGets the collection of address headers for the endpoints that the builder can create.
Public propertyIsAnonymousGets a value that indicates whether the endpoint is anonymous.
Public propertyIsNoneGets a value that indicates whether the URI for the endpoint is the NoneUri.
Public propertyStatic memberNoneUriGets a version-neutral URI used for the address of an endpoint to which a message must not be sent.
Public propertyUriGets the URI for the endpoint.
Top

  NameDescription
Public methodApplyToAssigns the URI and properties of the endpoint address to the values of the headers of a specified message.
Public methodEqualsReturns a value that indicates whether a specified object is equivalent to the current endpoint address. (Overrides Object::Equals(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 methodGetHashCodeProvides a unique hash code for the current endpoint address. (Overrides Object::GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberReadFromReads an endpoint address for a specified address version from a specified XML dictionary reader.
Public methodToStringReturns a canonical string representation of the URI that is contained in the endpoint address. (Overrides Object::ToString().)
Public methodWriteContentsToSaves all the child nodes of the node to the XML dictionary writer specified.
Top

  NameDescription
Public operatorStatic memberEqualityReturns a value that indicates whether specified endpoint addresses are not equivalent.
Public operatorStatic memberInequalityReturns a value that indicates whether specified endpoint addresses are not equivalent.
Top

An endpoint address uniquely identifies the endpoint for a service.

The endpoint address belongs to the service endpoint, which also contains the binding, contract and behaviors for the endpoint.

The EndpointAddress contains a URI and address properties that include an identity, WSDL elements, and a collection of optional headers. The optional headers are used to provide additional, more detailed addressing information to identify or interact with the endpoint. For example, they can be used to indicate which instance of a service is to be used to process an incoming message from a particular user when multiple instances are available.

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.

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

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