Packages
 In this topic

*Constructors

 

Packages   PreviousThis PackageNext
Package com.ms.com   Previous This
Package
Next

 


Class WrongThreadException

public class WrongThreadException extends RuntimeException
{
  // Constructors
  public WrongThreadException();
  public WrongThreadException(String s);
}

This class represents objects that are thrown when a method call cannot be made because it was called on the wrong thread. Typically, WrongThreadException objects are thrown when an operation invokes an Apartment Model Component Object Model (COM) object on the wrong thread.

RuntimeException
  |
  +--WrongThreadException

Constructors

WrongThreadException

public WrongThreadException();

Creates an instance of the WrongThreadException class.

WrongThreadException

public WrongThreadException(String s);

Creates an instance of the WrongThreadException class that contains a description of the exception.

ParameterDescription
s A description of the exception.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.