Binding.BuildChannelListener 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。
多載
| 名稱 | Description |
|---|---|
| BuildChannelListener<TChannel>(Object[]) |
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。 |
| BuildChannelListener<TChannel>(BindingParameterCollection) |
在接受特定通道類型且符合一組綁定參數所指定特徵的服務上建置通道監聽器。 |
| BuildChannelListener<TChannel>(Uri, Object[]) |
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。 |
| BuildChannelListener<TChannel>(Uri, BindingParameterCollection) |
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。 |
| BuildChannelListener<TChannel>(Uri, String, Object[]) |
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。 |
| BuildChannelListener<TChannel>(Uri, String, BindingParameterCollection) |
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。 |
| BuildChannelListener<TChannel>(Uri, String, ListenUriMode, Object[]) |
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。 |
| BuildChannelListener<TChannel>(Uri, String, ListenUriMode, BindingParameterCollection) |
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。 |
BuildChannelListener<TChannel>(Object[])
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。
public:
generic <typename TChannel>
where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(... cli::array <System::Object ^> ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (ParamArray parameters As Object()) As IChannelListener(Of TChannel)
類型參數
- TChannel
頻道聽眾接受的頻道類型。
參數
- parameters
- Object[]
指定通道工廠需求所需的物件陣列。
傳回
一個 IChannelListener<TChannel> 符合指定特徵的類型 TChannel 。
例外狀況
傳輸元件缺失或順序錯亂,或方案無效,或訊息版本未指定。
適用於
BuildChannelListener<TChannel>(BindingParameterCollection)
在接受特定通道類型且符合一組綁定參數所指定特徵的服務上建置通道監聽器。
public:
generic <typename TChannel>
where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(System::ServiceModel::Channels::BindingParameterCollection ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(System.ServiceModel.Channels.BindingParameterCollection parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (parameters As BindingParameterCollection) As IChannelListener(Of TChannel)
類型參數
- TChannel
頻道聽眾接受的頻道類型。
參數
- parameters
- BindingParameterCollection
BindingParameterCollection這會規定所建構的頻道聽眾需求。
傳回
一個 IChannelListener<TChannel> 符合指定特徵的類型 TChannel 。
例外狀況
傳輸元件缺失或順序錯亂,或方案無效,或訊息版本未指定。
適用於
BuildChannelListener<TChannel>(Uri, Object[])
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。
public:
generic <typename TChannel>
where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(Uri ^ listenUriBaseAddress, ... cli::array <System::Object ^> ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : Uri * obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : Uri * obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (listenUriBaseAddress As Uri, ParamArray parameters As Object()) As IChannelListener(Of TChannel)
類型參數
- TChannel
頻道聽眾接受的頻道類型。
參數
- parameters
- Object[]
指定所建通道工廠需求的物件陣列。
傳回
一個 IChannelListener<TChannel> 符合指定特徵的類型 TChannel 。
例外狀況
傳輸元件缺失或順序錯亂,或方案無效,或訊息版本未指定。
適用於
BuildChannelListener<TChannel>(Uri, BindingParameterCollection)
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。
public:
generic <typename TChannel>
where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(Uri ^ listenUriBaseAddress, System::ServiceModel::Channels::BindingParameterCollection ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, System.ServiceModel.Channels.BindingParameterCollection parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : Uri * System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : Uri * System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (listenUriBaseAddress As Uri, parameters As BindingParameterCollection) As IChannelListener(Of TChannel)
類型參數
- TChannel
頻道聽眾接受的頻道類型。
參數
- parameters
- BindingParameterCollection
BindingParameterCollection這會規定所建構的頻道聽眾需求。
傳回
一個 IChannelListener<TChannel> 符合指定特徵的類型 TChannel 。
例外狀況
傳輸元件缺失或順序錯亂,或方案無效,或訊息版本未指定。
適用於
BuildChannelListener<TChannel>(Uri, String, Object[])
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。
public:
generic <typename TChannel>
where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(Uri ^ listenUriBaseAddress, System::String ^ listenUriRelativeAddress, ... cli::array <System::Object ^> ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, string listenUriRelativeAddress, params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : Uri * string * obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : Uri * string * obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (listenUriBaseAddress As Uri, listenUriRelativeAddress As String, ParamArray parameters As Object()) As IChannelListener(Of TChannel)
類型參數
- TChannel
頻道聽眾接受的頻道類型。
參數
- listenUriRelativeAddress
- String
相對於服務監聽的基底位址的位址。
- parameters
- Object[]
指定所建通道工廠需求的物件陣列。
傳回
一個 IChannelListener<TChannel> 符合指定特徵的類型 TChannel 。
例外狀況
傳輸元件缺失或順序錯亂,或方案無效,或訊息版本未指定。
適用於
BuildChannelListener<TChannel>(Uri, String, BindingParameterCollection)
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。
public:
generic <typename TChannel>
where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(Uri ^ listenUriBaseAddress, System::String ^ listenUriRelativeAddress, System::ServiceModel::Channels::BindingParameterCollection ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, string listenUriRelativeAddress, System.ServiceModel.Channels.BindingParameterCollection parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : Uri * string * System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : Uri * string * System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (listenUriBaseAddress As Uri, listenUriRelativeAddress As String, parameters As BindingParameterCollection) As IChannelListener(Of TChannel)
類型參數
- TChannel
頻道聽眾接受的頻道類型。
參數
- listenUriRelativeAddress
- String
相對於服務監聽的基底位址的位址。
- parameters
- BindingParameterCollection
BindingParameterCollection這會規定所建構的頻道聽眾需求。
傳回
一個 IChannelListener<TChannel> 符合指定特徵的類型 TChannel 。
例外狀況
傳輸元件缺失或順序錯亂,或方案無效,或訊息版本未指定。
適用於
BuildChannelListener<TChannel>(Uri, String, ListenUriMode, Object[])
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。
public:
generic <typename TChannel>
where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(Uri ^ listenUriBaseAddress, System::String ^ listenUriRelativeAddress, System::ServiceModel::Description::ListenUriMode listenUriMode, ... cli::array <System::Object ^> ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, string listenUriRelativeAddress, System.ServiceModel.Description.ListenUriMode listenUriMode, params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : Uri * string * System.ServiceModel.Description.ListenUriMode * obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : Uri * string * System.ServiceModel.Description.ListenUriMode * obj[] -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (listenUriBaseAddress As Uri, listenUriRelativeAddress As String, listenUriMode As ListenUriMode, ParamArray parameters As Object()) As IChannelListener(Of TChannel)
類型參數
- TChannel
頻道聽眾接受的頻道類型。
參數
- listenUriRelativeAddress
- String
相對於服務監聽的基底位址的位址。
- listenUriMode
- ListenUriMode
該值 ListenUriMode 表示傳輸是否必須確保提供給服務監聽的 URI 是唯一或能完全照原點使用。
- parameters
- Object[]
指定所建通道工廠需求的物件陣列。
傳回
一個 IChannelListener<TChannel> 符合指定特徵的類型 TChannel 。
例外狀況
傳輸元件缺失或順序錯亂,或方案無效,或訊息版本未指定。
適用於
BuildChannelListener<TChannel>(Uri, String, ListenUriMode, BindingParameterCollection)
在接受特定頻道類型且符合指定功能的服務上建置頻道監聽器。
public:
generic <typename TChannel>
where TChannel : class, System::ServiceModel::Channels::IChannel virtual System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(Uri ^ listenUriBaseAddress, System::String ^ listenUriRelativeAddress, System::ServiceModel::Description::ListenUriMode listenUriMode, System::ServiceModel::Channels::BindingParameterCollection ^ parameters);
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(Uri listenUriBaseAddress, string listenUriRelativeAddress, System.ServiceModel.Description.ListenUriMode listenUriMode, System.ServiceModel.Channels.BindingParameterCollection parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListener : Uri * string * System.ServiceModel.Description.ListenUriMode * System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
override this.BuildChannelListener : Uri * string * System.ServiceModel.Description.ListenUriMode * System.ServiceModel.Channels.BindingParameterCollection -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) (listenUriBaseAddress As Uri, listenUriRelativeAddress As String, listenUriMode As ListenUriMode, parameters As BindingParameterCollection) As IChannelListener(Of TChannel)
類型參數
- TChannel
頻道聽眾接受的頻道類型。
參數
- listenUriRelativeAddress
- String
相對於服務監聽的基底位址的位址。
- listenUriMode
- ListenUriMode
該值 ListenUriMode 表示傳輸是否必須確保提供給服務監聽的 URI 是唯一或能完全照原點使用。
- parameters
- BindingParameterCollection
BindingParameterCollection這會規定所建構的頻道聽眾需求。
傳回
一個 IChannelListener<TChannel> 符合指定特徵的類型 TChannel 。
例外狀況
傳輸元件缺失或順序錯亂,或方案無效,或訊息版本未指定。