| Visual Basic (Declaration) | |
|---|---|
Public Overridable Function TryWrite( _ ByVal millisecondsTimeout As Integer _ ) As Boolean  | |
| C# | |
|---|---|
public virtual bool TryWrite( int millisecondsTimeout )  | |
Parameters
- millisecondsTimeout
 
| Exception | Description | 
|---|---|
| System.ObjectDisposedException | The exception that is thrown when an operation is performed on a disposed object. | 
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7