Binding.BuildChannelListener 方法

定義

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

多載

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[])

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

C#
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel> (params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;

類型參數

TChannel

通道接聽程式接受的通道類型。

參數

parameters
Object[]

物件陣列,可指定所建置之通道處理站的需求。

傳回

屬於 IChannelListener<TChannel> 型別的 TChannel,可滿足指定的功能。

例外狀況

傳輸項目遺失或發生錯誤,或是配置無效或未指定訊息版本。

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BuildChannelListener<TChannel>(BindingParameterCollection)

在服務上建置通道接聽程式,此接聽程式會接受指定的通道型別,並滿足繫結參數集合所指定的功能。

C#
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel> (System.ServiceModel.Channels.BindingParameterCollection parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;

類型參數

TChannel

通道接聽程式接受的通道類型。

參數

parameters
BindingParameterCollection

指定所建置之通道接聽程式需求的 BindingParameterCollection

傳回

屬於 IChannelListener<TChannel> 型別的 TChannel,可滿足指定的功能。

例外狀況

傳輸項目遺失或發生錯誤,或是配置無效或未指定訊息版本。

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BuildChannelListener<TChannel>(Uri, Object[])

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

C#
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel> (Uri listenUriBaseAddress, params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;

類型參數

TChannel

通道接聽程式接受的通道類型。

參數

listenUriBaseAddress
Uri

提供服務接聽之基底位址 (Base Address) 的 Uri

parameters
Object[]

物件陣列,可指定所建置之通道處理站的需求。

傳回

屬於 IChannelListener<TChannel> 型別的 TChannel,可滿足指定的功能。

例外狀況

傳輸項目遺失或發生錯誤,或是配置無效或未指定訊息版本。

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BuildChannelListener<TChannel>(Uri, BindingParameterCollection)

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

C#
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel> (Uri listenUriBaseAddress, System.ServiceModel.Channels.BindingParameterCollection parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;

類型參數

TChannel

通道接聽程式接受的通道類型。

參數

listenUriBaseAddress
Uri

提供服務接聽之基底位址 (Base Address) 的 Uri

parameters
BindingParameterCollection

指定所建置之通道接聽程式需求的 BindingParameterCollection

傳回

屬於 IChannelListener<TChannel> 型別的 TChannel,可滿足指定的功能。

例外狀況

傳輸項目遺失或發生錯誤,或是配置無效或未指定訊息版本。

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BuildChannelListener<TChannel>(Uri, String, Object[])

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

C#
public virtual System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel> (Uri listenUriBaseAddress, string listenUriRelativeAddress, params object[] parameters) where TChannel : class, System.ServiceModel.Channels.IChannel;

類型參數

TChannel

通道接聽程式接受的通道類型。

參數

listenUriBaseAddress
Uri

提供服務接聽之基底位址 (Base Address) 的 Uri

listenUriRelativeAddress
String

服務接聽的位址 (相對於基底位址)。

parameters
Object[]

物件陣列,可指定所建置之通道處理站的需求。

傳回

屬於 IChannelListener<TChannel> 型別的 TChannel,可滿足指定的功能。

例外狀況

傳輸項目遺失或發生錯誤,或是配置無效或未指定訊息版本。

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BuildChannelListener<TChannel>(Uri, String, BindingParameterCollection)

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

C#
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;

類型參數

TChannel

通道接聽程式接受的通道類型。

參數

listenUriBaseAddress
Uri

提供服務接聽之基底位址 (Base Address) 的 Uri

listenUriRelativeAddress
String

服務接聽的位址 (相對於基底位址)。

parameters
BindingParameterCollection

指定所建置之通道接聽程式需求的 BindingParameterCollection

傳回

屬於 IChannelListener<TChannel> 型別的 TChannel,可滿足指定的功能。

例外狀況

傳輸項目遺失或發生錯誤,或是配置無效或未指定訊息版本。

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BuildChannelListener<TChannel>(Uri, String, ListenUriMode, Object[])

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

C#
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;

類型參數

TChannel

通道接聽程式接受的通道類型。

參數

listenUriBaseAddress
Uri

提供服務接聽之基底位址 (Base Address) 的 Uri

listenUriRelativeAddress
String

服務接聽的位址 (相對於基底位址)。

listenUriMode
ListenUriMode

ListenUriMode 的值,這個值指出傳輸是否必須確定提供給服務接聽的 URI 是唯一的,或是可以完全依照提供的方式來使用。

parameters
Object[]

物件陣列,可指定所建置之通道處理站的需求。

傳回

屬於 IChannelListener<TChannel> 型別的 TChannel,可滿足指定的功能。

例外狀況

傳輸項目遺失或發生錯誤,或是配置無效或未指定訊息版本。

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BuildChannelListener<TChannel>(Uri, String, ListenUriMode, BindingParameterCollection)

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

C#
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;

類型參數

TChannel

通道接聽程式接受的通道類型。

參數

listenUriBaseAddress
Uri

提供服務接聽之基底位址 (Base Address) 的 Uri

listenUriRelativeAddress
String

服務接聽的位址 (相對於基底位址)。

listenUriMode
ListenUriMode

ListenUriMode 的值,這個值指出傳輸是否必須確定提供給服務接聽的 URI 是唯一的,或是可以完全依照提供的方式來使用。

parameters
BindingParameterCollection

指定所建置之通道接聽程式需求的 BindingParameterCollection

傳回

屬於 IChannelListener<TChannel> 型別的 TChannel,可滿足指定的功能。

例外狀況

傳輸項目遺失或發生錯誤,或是配置無效或未指定訊息版本。

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1