共用方式為


UserDefinedMessage Constructor

Initializes a new instance of the UserDefinedMessage class.

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。

多載清單

名稱 Description
UserDefinedMessage ()
Initializes a new instance of the UserDefinedMessage class.
UserDefinedMessage (Server, Int32)
Initializes a new instance of the UserDefinedMessage class on the specified instance of Microsoft SQL Server and with the specified ID value.
UserDefinedMessage (Server, Int32, String)
Initializes a new instance of the UserDefinedMessage class on the specified instance of Microsoft SQL Server, with the specified ID value and written in the specified language.
UserDefinedMessage (Server, Int32, Int32, Int32, String)
Initializes a new instance of the UserDefinedMessage class on the specified instance of Microsoft SQL Server, with the specified ID value, written in the specified language, the specified severity, and actual message text.
UserDefinedMessage (Server, Int32, String, Int32, String)
Initializes a new instance of the UserDefinedMessage class on the specified instance of Microsoft SQL Server, with the specified ID value, written in the specified language, the specified severity, and actual message text.
UserDefinedMessage (Server, Int32, Int32, Int32, String, Boolean)
Initializes a new instance of the UserDefinedMessage class on the specified instance of Microsoft SQL Server, with the specified ID value, written in the specified language, the specified severity and actual message text, and the option to specify whether the message is logged to the Microsoft Windows event log.
UserDefinedMessage (Server, Int32, String, Int32, String, Boolean)
Initializes a new instance of the UserDefinedMessage class on the specified instance of Microsoft SQL Server, with the specified ID value, written in the specified language, the specified severity and actual message text, and the option to specify whether the message is logged to the Microsoft Windows event log.

請參閱

參考

UserDefinedMessage Class
UserDefinedMessage Members
Microsoft.SqlServer.Management.Smo Namespace

其他資源

Using Messages
錯誤與訊息