C# MemoryStream WriteTimeout

Description

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

Syntax

MemoryStream.WriteTimeout has the following syntax.


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

Example


using System;/*w  w w .  j  a va2s.c  o  m*/
using System.IO;
public class MainClass{
  public static void Main(String[] argv){  
    MemoryStream memStream = new MemoryStream();
    
    Console.WriteLine(memStream.WriteTimeout);
    
  }
}




















Home »
  C# Tutorial »
    System.IO »




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