Compartir a través de


ExceptionMessageBox.Message Propiedad

Gets or sets the Exception that contains the message to display.

Espacio de nombres:  Microsoft.SqlServer.MessageBox
Ensamblado:  Microsoft.ExceptionMessageBox (en Microsoft.ExceptionMessageBox.dll)

Sintaxis

'Declaración
Public Property Message As Exception 
    Get 
    Set
'Uso
Dim instance As ExceptionMessageBox 
Dim value As Exception 

value = instance.Message

instance.Message = value
public Exception Message { get; set; }
public:
property Exception^ Message {
    Exception^ get ();
    void set (Exception^ value);
}
member Message : Exception with get, set
function get Message () : Exception 
function set Message (value : Exception)

Valor de la propiedad

Tipo: System.Exception
An Exception object.

Comentarios

The Message, Source, Data, and HelpLink properties of Exception are used for the top-level message, and the InnerException property is used for lower-level properties.

The default value is nulles una referencia NULL (Nothing en Visual Basic)..

To display the exception message box without handling an exception, create an instance of the Exception object, define the properties to be displayed to the user in the message box, and assign the Exception to the Message property.

Vea también

Referencia

ExceptionMessageBox Clase

Espacio de nombres Microsoft.SqlServer.MessageBox