Binding.BuildChannelListener 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。
多載
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
,可滿足指定的功能。
例外狀況
傳輸項目遺失或發生錯誤,或是配置無效或未指定訊息版本。