次の方法で共有


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

属性

注釈

このプロパティは、フレーム データを読み取り、基になる接続からディスパッチする接続を実行するためのタイムアウトを指定します。

適用対象