Stream.ReadTimeout Propiedad
Definición
Obtiene o establece un valor, en milisegundos, que determina durante cuánto tiempo la secuencia intentará realizar operaciones de lectura antes de que se agote el tiempo de espera.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); };
[System.Runtime.InteropServices.ComVisible(false)]
public virtual int ReadTimeout { get; set; }
member this.ReadTimeout : int with get, set
Public Overridable Property ReadTimeout As Integer
Valor de propiedad
Valor, en milisegundos, que determina durante cuánto tiempo la secuencia intentará realizar operaciones de lectura antes de que se agote el tiempo de espera.A value, in milliseconds, that determines how long the stream will attempt to read before timing out.
- Atributos
Excepciones
El método ReadTimeout siempre produce una excepción InvalidOperationException.The ReadTimeout method always throws an InvalidOperationException.
Notas a los desarrolladores de herederos
La ReadTimeout propiedad se debe invalidar para proporcionar el comportamiento adecuado para la secuencia.The ReadTimeout property should be overridden to provide the appropriate behavior for the stream. Si la secuencia no admite el tiempo de espera, esta propiedad debe provocar InvalidOperationExceptionuna.If the stream does not support timing out, this property should raise an InvalidOperationException.