UserDefinedMessage UserDefinedMessage UserDefinedMessage Constructors

Definition

Overloads

UserDefinedMessage() UserDefinedMessage() UserDefinedMessage()

Initializes a new instance of the UserDefinedMessage class.

UserDefinedMessage(Server, Int32) UserDefinedMessage(Server, Int32)

Initializes a new instance of the UserDefinedMessage class on the specified instance of SQL Server and with the specified ID value.

UserDefinedMessage(Server, Int32, String) UserDefinedMessage(Server, Int32, String)

Initializes a new instance of the UserDefinedMessage class on the specified instance of SQL Server, with the specified ID value and written in the specified language.

UserDefinedMessage(Server, Int32, Int32, Int32, String) UserDefinedMessage(Server, Int32, Int32, Int32, String)

Initializes a new instance of the UserDefinedMessage class on the specified instance of 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) UserDefinedMessage(Server, Int32, String, Int32, String)

Initializes a new instance of the UserDefinedMessage class on the specified instance of 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) UserDefinedMessage(Server, Int32, Int32, Int32, String, Boolean)

Initializes a new instance of the UserDefinedMessage class on the specified instance of 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 Windows event log.

UserDefinedMessage(Server, Int32, String, Int32, String, Boolean) UserDefinedMessage(Server, Int32, String, Int32, String, Boolean)

Initializes a new instance of the UserDefinedMessage class on the specified instance of 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 Windows event log.

UserDefinedMessage() UserDefinedMessage() UserDefinedMessage()

Initializes a new instance of the UserDefinedMessage class.

public:
 UserDefinedMessage();
public UserDefinedMessage ();
Public Sub New ()

Examples

Using Messages

UserDefinedMessage(Server, Int32) UserDefinedMessage(Server, Int32)

Initializes a new instance of the UserDefinedMessage class on the specified instance of SQL Server and with the specified ID value.

public:
 UserDefinedMessage(Microsoft::SqlServer::Management::Smo::Server ^ server, int id);
public UserDefinedMessage (Microsoft.SqlServer.Management.Smo.Server server, int id);
Parameters
server
Server Server Server

A Server system object value that specifies the instance of SQL Server to which the user-defined message belongs.

id
Int32 Int32 Int32

An Int32 value that specifies the ID value that uniquely identifies the user-defined message.

Examples

Using Messages

See Also

UserDefinedMessage(Server, Int32, String) UserDefinedMessage(Server, Int32, String)

Initializes a new instance of the UserDefinedMessage class on the specified instance of SQL Server, with the specified ID value and written in the specified language.

public:
 UserDefinedMessage(Microsoft::SqlServer::Management::Smo::Server ^ server, int id, System::String ^ language);
public UserDefinedMessage (Microsoft.SqlServer.Management.Smo.Server server, int id, string language);
Parameters
server
Server Server Server

A Server system object value that specifies the instance of SQL Server to which the user-defined message belongs.

id
Int32 Int32 Int32

An Int32 value that specifies the ID value that uniquely identifies the user-defined message.

language
String String String

A String value that specifies the language in which the user-defined message is written.

Examples

Using Messages

UserDefinedMessage(Server, Int32, Int32, Int32, String) UserDefinedMessage(Server, Int32, Int32, Int32, String)

Initializes a new instance of the UserDefinedMessage class on the specified instance of SQL Server, with the specified ID value, written in the specified language, the specified severity, and actual message text.

public:
 UserDefinedMessage(Microsoft::SqlServer::Management::Smo::Server ^ server, int id, int language, int severity, System::String ^ message);
public UserDefinedMessage (Microsoft.SqlServer.Management.Smo.Server server, int id, int language, int severity, string message);
Parameters
server
Server Server Server

A Server system object value that specifies the instance of SQL Server to which the user-defined message belongs.

id
Int32 Int32 Int32

An Int32 value that specifies the ID value that uniquely identifies the user-defined message.

language
Int32 Int32 Int32

A Int32 value that specifies the language ID in which the user-defined message is written.

severity
Int32 Int32 Int32

An Int32 value that specifies the severity of the message.

message
String String String

A String value that specifies the text of the message.

Examples

Using Messages

UserDefinedMessage(Server, Int32, String, Int32, String) UserDefinedMessage(Server, Int32, String, Int32, String)

Initializes a new instance of the UserDefinedMessage class on the specified instance of SQL Server, with the specified ID value, written in the specified language, the specified severity, and actual message text.

public:
 UserDefinedMessage(Microsoft::SqlServer::Management::Smo::Server ^ server, int id, System::String ^ language, int severity, System::String ^ message);
public UserDefinedMessage (Microsoft.SqlServer.Management.Smo.Server server, int id, string language, int severity, string message);
Parameters
server
Server Server Server

A Server system object value that specifies the instance of SQL Server to which the user-defined message belongs.

id
Int32 Int32 Int32

An Int32 value that specifies the ID value that uniquely identifies the user-defined message.

language
String String String

A String value that specifies the language in which the user-defined message is written.

severity
Int32 Int32 Int32

An Int32 value that specifies the severity of the message.

message
String String String

A String value that specifies the text of the message.

Examples

Using Messages

UserDefinedMessage(Server, Int32, Int32, Int32, String, Boolean) UserDefinedMessage(Server, Int32, Int32, Int32, String, Boolean)

Initializes a new instance of the UserDefinedMessage class on the specified instance of 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 Windows event log.

public:
 UserDefinedMessage(Microsoft::SqlServer::Management::Smo::Server ^ server, int id, int language, int severity, System::String ^ message, bool isLogged);
public UserDefinedMessage (Microsoft.SqlServer.Management.Smo.Server server, int id, int language, int severity, string message, bool isLogged);
Parameters
server
Server Server Server

A Server system object value that specifies the instance of SQL Server to which the user-defined message belongs.

id
Int32 Int32 Int32

An Int32 value that specifies the ID value that uniquely identifies the user-defined message.

language
Int32 Int32 Int32

A Int32 value that specifies the language ID in which the user-defined message is written.

severity
Int32 Int32 Int32

An Int32 value that specifies the severity of the message.

message
String String String

A String value that specifies the text of the message.

isLogged
Boolean Boolean Boolean

A Boolean value that specifies whether the user-defined message is logged to the Windows event log.

If True, the message is logged.

If False, the message is not logged.

Examples

Using Messages

See Also

UserDefinedMessage(Server, Int32, String, Int32, String, Boolean) UserDefinedMessage(Server, Int32, String, Int32, String, Boolean)

Initializes a new instance of the UserDefinedMessage class on the specified instance of 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 Windows event log.

public:
 UserDefinedMessage(Microsoft::SqlServer::Management::Smo::Server ^ server, int id, System::String ^ language, int severity, System::String ^ message, bool isLogged);
public UserDefinedMessage (Microsoft.SqlServer.Management.Smo.Server server, int id, string language, int severity, string message, bool isLogged);
Parameters
server
Server Server Server

A Server system object value that specifies the instance of SQL Server to which the user-defined message belongs.

id
Int32 Int32 Int32

An Int32 value that specifies the ID value that uniquely identifies the user-defined message.

language
String String String

A String value that specifies the language in which the user-defined message is written.

severity
Int32 Int32 Int32

An Int32 value that specifies the severity of the message.

message
String String String

A String value that specifies the text of the message.

isLogged
Boolean Boolean Boolean

A Boolean value that specifies whether the user-defined message is logged to the Windows event log.

If True, the message is logged.

If False, the message is not logged.

Examples

Using Messages

Applies to