EndpointAddress.Uri Property

Definition

Gets the URI for the endpoint.

C#
public Uri Uri { get; }
C#
[System.ComponentModel.TypeConverter(typeof(System.UriTypeConverter))]
public Uri Uri { get; }

Property Value

Uri

The Uri for the endpoint.

Attributes

Examples

C#
EndpointIdentity endpointIdentity =
    EndpointIdentity.CreateUpnIdentity(WindowsIdentity.GetCurrent().Name);
EndpointAddress endpointAddress = new EndpointAddress(
    new Uri
    ("http://localhost:8003/servicemodelsamples/service/incode/identity"),
    endpointIdentity, addressHeaders);

Uri nonUri = endpointAddress.Uri;

Remarks

The URI identifies where a message is being sent. To set a URI for an endpoint address, use Uri.

Applies to

Proizvod Verzije
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0