C# MemoryStream ReadTimeout

Description

MemoryStream ReadTimeout Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out.

Syntax

MemoryStream.ReadTimeout has the following syntax.


[ComVisibleAttribute(false)]
public virtual int ReadTimeout { get; set; }

Example


using System;/*from w w w. j  av a 2  s . co  m*/
using System.IO;
public class MainClass{
  public static void Main(String[] argv){  
    MemoryStream memStream = new MemoryStream();
    
    Console.WriteLine(memStream.ReadTimeout);
    
  }
}




















Home »
  C# Tutorial »
    System.IO »




BinaryReader
BinaryWriter
Directory
DirectoryInfo
DriveInfo
File
FileInfo
FileStream
MemoryStream
Path
StreamReader
StreamWriter
StringReader
StringWriter