BindingContext.ListenUriMode 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示传输是否必须确保提供给服务侦听的 URI 是唯一的。
public:
property System::ServiceModel::Description::ListenUriMode ListenUriMode { System::ServiceModel::Description::ListenUriMode get(); void set(System::ServiceModel::Description::ListenUriMode value); };
public System.ServiceModel.Description.ListenUriMode ListenUriMode { get; set; }
member this.ListenUriMode : System.ServiceModel.Description.ListenUriMode with get, set
Public Property ListenUriMode As ListenUriMode
属性值
ListenUriMode,指示传输是否必须确保提供给服务侦听的 URI 是唯一的。
示例
CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
ListenUriMode mode = context.ListenUriMode;
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
Dim mode As ListenUriMode = context.ListenUriMode