Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

Err.Description Property

Class

Microsoft.VisualBasic.ErrObject

Syntax

Dim result As String = Err.Description

Description

The Description property gets or sets a general text description of a runtime error.

Usage at a Glance

  • When a runtime error occurs, the Description property is automatically assigned the standard description of the error.

  • While you can assign the Description property directly, the Err.Raise method is a better way to assign the values of a custom error.

  • You can override a standard error description by assigning your own description to the Description property for both VB errors and application-defined errors.

See Also

Err Object, Err.Number Property, Err.Source Property

Категории