ConstraintException Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
The exception that is thrown when an action is attempted that violates a constraint.
Inheritance Hierarchy
System. . :: . .Object
System. . :: . .Exception
Microsoft.SPOT..::..ConstraintException
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)
Syntax
'Declaration
Public Class ConstraintException _
Inherits Exception
public class ConstraintException : Exception
public ref class ConstraintException : public Exception
type ConstraintException =
class
inherit Exception
end
public class ConstraintException extends Exception
The ConstraintException type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ConstraintException | Creates an instance of the ConstraintException class. |
Top
Properties
Name | Description | |
---|---|---|
InnerException | Gets the Exception instance that caused the current exception. (Inherited from Exception.) | |
Message | Gets a message that describes the current exception. (Inherited from Exception.) | |
StackTrace | Gets a string representation of the immediate frames on the call stack. (Inherited from Exception.) |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Creates and returns a string representation of the current exception. (Inherited from Exception.) |
Top
Fields
Name | Description | |
---|---|---|
m_HResult | (Inherited from Exception.) |
Top
Remarks
When a ConstraintException exception is caught, if the ExecutionConstraint object that caused this exception has not been uninstalled, the catch block implementation has a small additional amount of time during which to handle the exception. If this takes too long, the exception is rethrown automatically.
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.