CSharpTest.Net
TryWrite Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Synchronization Namespace > SimpleReadWriteLocking Class : TryWrite Method

millisecondsTimeout

Glossary Item Box

Returns true if the lock was successfully obtained within the timeout specified

Syntax

Visual Basic (Declaration) 
Public Overridable Function TryWrite( _
   ByVal millisecondsTimeout As Integer _
) As Boolean
C# 
public virtual bool TryWrite( 
   int millisecondsTimeout
)

Parameters

millisecondsTimeout

Exceptions

ExceptionDescription
System.ObjectDisposedExceptionThe exception that is thrown when an operation is performed on a disposed object.

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys