Bagikan melalui


ServiceEndpointCollection.TryGetEndpointAddress(String, String) Method

Definition

Gets the endpoint identified by the listener name.

public bool TryGetEndpointAddress (string listenerName, out string endpointAddress);
member this.TryGetEndpointAddress : string * string -> bool
Public Function TryGetEndpointAddress (listenerName As String, ByRef endpointAddress As String) As Boolean

Parameters

listenerName
String

Listener name

endpointAddress
String

Address of the endpoint if an endpoint with that listener name exists.

Returns

True if an endpoint with the listener name exists, False otherwise

Applies to