संपादित करें

इसके माध्यम से साझा किया गया


Stream.CanTimeout Property

Definition

Gets a value that determines whether the current stream can time out.

public:
 virtual property bool CanTimeout { bool get(); };
public virtual bool CanTimeout { get; }
[System.Runtime.InteropServices.ComVisible(false)]
public virtual bool CanTimeout { get; }
member this.CanTimeout : bool
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.CanTimeout : bool
Public Overridable ReadOnly Property CanTimeout As Boolean

Property Value

A value that determines whether the current stream can time out.

Attributes

Remarks

The CanTimeout property always returns false. Some stream implementations require different behavior, such as NetworkStream, which times out if network connectivity is interrupted or lost. If you are implementing a stream that must be able to time out, this property should be overridden to return true.

Applies to

See also