EndpointAddressBuilder.Uri 属性
定义
获取或设置生成器可以创建的终结点的 URI。Gets or sets the URI for the endpoints that the builder can create.
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。The Uri that specifies the endpoint address.
示例
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。Allows the programmer to set or get the URI associated with the endpoint address.