Export (0) Print
Expand All

CheckoutException Class

The exception that is thrown when an attempt to check out a file that is checked into a source code management program is canceled or fails.

For a list of all members of this type, see CheckoutException Members.

System.Object
   System.Exception
      System.SystemException
         System.Runtime.InteropServices.ExternalException
            System.ComponentModel.Design.CheckoutException

[Visual Basic]
Public Class CheckoutException
   Inherits ExternalException
[C#]
public class CheckoutException : ExternalException
[C++]
public __gc class CheckoutException : public ExternalException
[JScript]
public class CheckoutException extends ExternalException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Example

[Visual Basic, C#, C++] The following example demonstrates throwing a CheckoutException.

[Visual Basic] 
' Throws a checkout exception with a message and error code.
Throw New CheckoutException("This is an example exception", 0)

[C#] 
// Throws a checkout exception with a message and error code.
throw new CheckoutException("This is an example exception", 0);

[C++] 
// Throws a checkout exception with a message and error code.
throw new CheckoutException(S"This is an example exception", 0);

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Namespace: System.ComponentModel.Design

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

CheckoutException Members | System.ComponentModel.Design Namespace

Show:
© 2014 Microsoft