共用方式為


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

nullnull 參考 (在 Visual Basic 中為 Nothing).

Message

The error message string specified in message.

請參閱

參考

XEventException 類別

XEventException 多載

Microsoft.SqlServer.Management.XEvent 命名空間

其他資源

Handling and Throwing Exceptions