Constructeur XEventException (String)

Initializes a new instance of the XEventException class with a specified message that describes the error.

Espace de noms :  Microsoft.SqlServer.Management.XEvent
Assembly :  Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    message As String _
)
'Utilisation
Dim message As String 

Dim instance As New XEventException(message)
public XEventException(
    string message
)
public:
XEventException(
    String^ message
)
new : 
        message:string -> XEventException
public function XEventException(
    message : String
)

Paramètres

  • message
    Type : System.String
    The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Notes

The following table shows the initial property values for an instance of XEventException.

Property

Value

InnerException

nullune référence Null (Nothing dans Visual Basic).

Message

The error message string specified in message.

Voir aussi

Référence

XEventException Classe

Surcharge XEventException

Espace de noms Microsoft.SqlServer.Management.XEvent

Autres ressources

Handling and Throwing Exceptions