Visual Basic (Declaration) | |
---|---|
Protected Overrides Sub OnClose() |
C# | |
---|---|
protected override void OnClose() |
This action will set the IsOpen property to false.
The best practices for any application is to wait for some amount of time after calling
OnClose before attempting to re-open by calling the OnOpen method. Be aware the port may not be
closed instantly.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family