The CError type exposes the following members.

Constructors

  NameDescription
Public methodCError
Creates a new error message object for the given error number.

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetErrorMessage
Given an error number, gets the error message text for the culture on the current thread.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyCategory
The type of error, e.g., runtime, field validation, error, warning
Public propertyCategoryString
Gets a localized string representing the Category property
Public propertyLocation
Gets an indication of where in the code the error occurred.
Public propertyMessage
The text of the error message
Public propertyMethod
Gets the method portion of the Location property.
Public propertyNumber
The error number of the error

See Also