Поделиться через


Конструктор XEventException (String)

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

Пространство имен:  Microsoft.SqlServer.Management.XEvent
Сборка:  Microsoft.SqlServer.Management.XEvent (в Microsoft.SqlServer.Management.XEvent.dll)

Синтаксис

'Декларация
Public Sub New ( _
    message As String _
)
'Применение
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
)

Параметры

  • message
    Тип: 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.

Замечания

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

Property

Value

InnerException

nullпустая ссылка (Nothing в Visual Basic).

Message

The error message string specified in message.

См. также

Справочник

XEventException Класс

Перегрузка XEventException

Пространство имен Microsoft.SqlServer.Management.XEvent

Другие ресурсы

Handling and Throwing Exceptions