EndpointAddressBuilder.Uri 属性

定义

获取或设置生成器可以创建的终结点的 URI。

public:
 property Uri ^ Uri { Uri ^ get(); void set(Uri ^ value); };
public Uri Uri { get; set; }
member this.Uri : Uri with get, set
Public Property Uri As Uri

属性值

Uri

指定终结点地址的 Uri

示例

EndpointAddressBuilder eab = new EndpointAddressBuilder();
eab.Uri = new Uri("http://localhost/Uri");
eab.Headers.Add(AddressHeader.CreateAddressHeader("n", "ns", "val"));
Dim eab As New EndpointAddressBuilder()
eab.Uri = New Uri("http://localhost/Uri")
eab.Headers.Add(AddressHeader.CreateAddressHeader("n", "ns", "val"))

注解

允许程序员设置或获取与终结点地址关联的 URI。

适用于