ChannelListenerBase.DefaultSendTimeout 屬性


取得針對要完成之傳送作業所提供的預設時間間隔。Gets the default interval of time provided for a send operation to complete.

 virtual property TimeSpan DefaultSendTimeout { TimeSpan get(); };
protected override TimeSpan DefaultSendTimeout { get; }
member this.DefaultSendTimeout : TimeSpan
Protected Overrides ReadOnly Property DefaultSendTimeout As TimeSpan


指定必須在逾時前完成傳送作業之寬限時間的預設 TimeSpanThe default TimeSpan that specifies how long the send operation has to complete before timing out.


當建立新的 ChannelListenerBase 物件時,會設定這個值。This value is set when creating a new ChannelListenerBase object. 預設的 ChannelListenerBase() 建構函式會將 DefaultSendTimeout 屬性設定為 1 分鐘的值。The default ChannelListenerBase() constructor sets the DefaultSendTimeout property to a value of 1 minute. 如果您想要為這個逾時指定另一個值,請使用 ChannelListenerBase(IDefaultCommunicationTimeouts)Use ChannelListenerBase(IDefaultCommunicationTimeouts) if you want to specify another value for this timeout.