ChannelListenerBase 建構函式

定義

初始化 ChannelListenerBase 類別的新執行個體。Initializes a new instance of the ChannelListenerBase class.

多載

ChannelListenerBase()

初始化 ChannelListenerBase 類別的新執行個體。Initializes a new instance of the ChannelListenerBase class.

ChannelListenerBase(IDefaultCommunicationTimeouts)

使用指定的預設通訊逾時,初始化 ChannelListenerBase 類別的新執行個體。Initializes a new instance of the ChannelListenerBase class with specified default communication timeouts.

備註

交換訊息時,預設的 ChannelListenerBase() 建構函式會使用服務模型逾時值來初始化逾時屬性。The default ChannelListenerBase() constructor initializes timeout properties with the service model timeout values when exchanging messages. 若是開啟、傳送和關閉作業,預設值為 1 分鐘;若是接收作業,則為 10 分鐘。The default value is 1 minute for open, send, and close operations and 10 minutes for the receive operation. 如果您想要為這些作業逾時指定其他值,請使用 ChannelListenerBase(IDefaultCommunicationTimeouts)Use ChannelListenerBase(IDefaultCommunicationTimeouts) if you want to specify other values for these operation timeouts.

ChannelListenerBase()

初始化 ChannelListenerBase 類別的新執行個體。Initializes a new instance of the ChannelListenerBase class.

protected:
 ChannelListenerBase();
protected ChannelListenerBase ();
Protected Sub New ()

備註

無參數的函式會在交換訊息時, 使用服務模型超時值來初始化 timeout 屬性。The parameterless constructor initializes timeout properties with the service model timeout values when exchanging messages. 若是開啟、傳送和關閉作業,預設值為 1 分鐘;若是接收作業,則為 10 分鐘。The default value is 1 minute for open, send, and close operations and 10 minutes for the receive operation. 如果您想要為這些作業逾時指定其他值,請使用 ChannelListenerBase(IDefaultCommunicationTimeouts)Use ChannelListenerBase(IDefaultCommunicationTimeouts) if you want to specify other values for these operation timeouts.

ChannelListenerBase(IDefaultCommunicationTimeouts)

使用指定的預設通訊逾時,初始化 ChannelListenerBase 類別的新執行個體。Initializes a new instance of the ChannelListenerBase class with specified default communication timeouts.

protected:
 ChannelListenerBase(System::ServiceModel::IDefaultCommunicationTimeouts ^ timeouts);
protected ChannelListenerBase (System.ServiceModel.IDefaultCommunicationTimeouts timeouts);
new System.ServiceModel.Channels.ChannelListenerBase : System.ServiceModel.IDefaultCommunicationTimeouts -> System.ServiceModel.Channels.ChannelListenerBase
Protected Sub New (timeouts As IDefaultCommunicationTimeouts)

參數

timeouts
IDefaultCommunicationTimeouts

IDefaultCommunicationTimeouts,可在交換訊息時針對開啟、傳送、接收和關閉作業指定預設逾時值。The IDefaultCommunicationTimeouts that specify the default timeouts for open, send, receive, and close operations when exchanging messages.

備註

如果ChannelListenerBase(IDefaultCommunicationTimeouts)您想要指定開啟、傳送、接收和關閉作業超時的自訂值, 而不是使用服務模型的預設值, 請使用而不是無參數的函式。Use ChannelListenerBase(IDefaultCommunicationTimeouts) instead of the parameterless constructor if you want to specify custom values for the open, send, receive, and close operation timeouts instead of using the service model default values.

適用於