共用方式為


NetTcpSection.ReceiveTimeout 屬性

定義

取得或設定 NetTcpPortSharing 共用服務的逾時。

public:
 property TimeSpan ReceiveTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.ServiceModel.TimeSpanOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("receiveTimeout", DefaultValue="00:00:10")]
public TimeSpan ReceiveTimeout { get; set; }
[System.Configuration.ConfigurationProperty("receiveTimeout", DefaultValue="00:00:10")]
[System.ComponentModel.TypeConverter(typeof(System.Runtime.TimeSpanOrInfiniteConverter))]
public TimeSpan ReceiveTimeout { get; set; }
[System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("receiveTimeout", DefaultValue="00:00:30")]
public TimeSpan ReceiveTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.ServiceModel.TimeSpanOrInfiniteConverter))>]
[<System.Configuration.ConfigurationProperty("receiveTimeout", DefaultValue="00:00:10")>]
member this.ReceiveTimeout : TimeSpan with get, set
[<System.Configuration.ConfigurationProperty("receiveTimeout", DefaultValue="00:00:10")>]
[<System.ComponentModel.TypeConverter(typeof(System.Runtime.TimeSpanOrInfiniteConverter))>]
member this.ReceiveTimeout : TimeSpan with get, set
[<System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter))>]
[<System.Configuration.ConfigurationProperty("receiveTimeout", DefaultValue="00:00:30")>]
member this.ReceiveTimeout : TimeSpan with get, set
Public Property ReceiveTimeout As TimeSpan

屬性值

預設值是 10 秒。

屬性

備註

這個屬性會指定讀取框架資料以及從基礎連線執行連線分派的逾時。

適用於