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 秒。

属性

注解

此属性为读取组帧数据并执行来自基础连接的连接调度指定超时值。

适用于