共用方式為


BindingContext.ListenUriMode 屬性

定義

取得或設定值,這個值會指出傳輸是否必須確定提供給服務接聽的 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

適用於