UICancelOption Enumeration

Specifies whether an exception is thrown if the user clicks Cancel during an operation.

Remarks

This enumeration determines whether an OperationCanceledException is thrown when a user clicks Cancel during an operation. In either case, the operation is canceled.

Members

Member Name

Description

DoNothing

Do nothing when the user clicks Cancel.

ThrowException

Throw an exception when the user clicks Cancel.

Requirements

Namespace:Microsoft.VisualBasic.FileIO

Class:UICancelOption

Platforms: Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows NT Workstation 4.0, Windows NT Server 4.0, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, .NET Compact Framework - Mobile Phone, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

See Also

Reference

My.Computer.FileSystem.CopyDirectory Method

My.Computer.FileSystem.CopyFile Method

My.Computer.FileSystem.DeleteDirectory Method

My.Computer.FileSystem.DeleteFile Method

My.Computer.Network.DownloadFile Method

My.Computer.FileSystem.MoveDirectory Method

My.Computer.FileSystem.MoveFile Method

My.Computer.Network.UploadFile Method

UICancelOption

Change History

Date

History

Reason

September 2008

Changed exception listed in the "Remarks" section to OperationCanceledException.

Customer feedback.