Stream.ReadTimeout Proprietà
Definizione
Ottiene o imposta un valore, in millisecondi, che determina per quanto tempo il flusso tenterà la lettura prima del timeout.Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.
public:
virtual property int ReadTimeout { int get(); void set(int value); };
public virtual int ReadTimeout { get; set; }
[System.Runtime.InteropServices.ComVisible(false)]
public virtual int ReadTimeout { get; set; }
member this.ReadTimeout : int with get, set
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.ReadTimeout : int with get, set
Public Overridable Property ReadTimeout As Integer
Valore della proprietà
Valore in millisecondi che determina per quanto tempo il flusso tenterà la lettura prima del timeout.A value, in milliseconds, that determines how long the stream will attempt to read before timing out.
- Attributi
Eccezioni
Il metodo ReadTimeout genera sempre un'eccezione InvalidOperationException.The ReadTimeout method always throws an InvalidOperationException.
Note per gli eredi
ReadTimeoutÈ necessario eseguire l'override della proprietà per fornire il comportamento appropriato per il flusso.The ReadTimeout property should be overridden to provide the appropriate behavior for the stream. Se il flusso non supporta il timeout, questa proprietà deve generare un InvalidOperationException .If the stream does not support timing out, this property should raise an InvalidOperationException.