共用方式為


UserDefinedMessage Constructors

Definition

Overloads

UserDefinedMessage()

Creates a new UserDefinedMessage object.

UserDefinedMessage(Server, Int32)

Creates a new UserDefinedMessage object; with the Server and message id

UserDefinedMessage(Server, Int32, String)

Creates a new UserDefinedMessage object; with the Server, message id, and language specified.

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

Creates a new UserDefinedMessage object; with the Server, message id, and language id, severity and message text specified. Note: this is the minimal constructor which allows inline construction (language type differs from above).

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

Creates a new UserDefinedMessage object; with the Server, message id, and language, severity and message text specified. Note: this is the minimal constructor which allows inline construction.

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

Creates a new UserDefinedMessage object; with the Server, message id, and language id, severity, message text, and logging specified.

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

Creates a new UserDefinedMessage object; with the Server, message id, and language, severity, message text, and logging specified.

UserDefinedMessage()

Creates a new UserDefinedMessage object.

public UserDefinedMessage ();
Public Sub New ()

Applies to

UserDefinedMessage(Server, Int32)

Creates a new UserDefinedMessage object; with the Server and message id

public UserDefinedMessage (Microsoft.SqlServer.Management.Smo.Server server, int id);
new Microsoft.SqlServer.Management.Smo.UserDefinedMessage : Microsoft.SqlServer.Management.Smo.Server * int -> Microsoft.SqlServer.Management.Smo.UserDefinedMessage
Public Sub New (server As Server, id As Integer)

Parameters

server
Server
id
Int32

Applies to

UserDefinedMessage(Server, Int32, String)

Creates a new UserDefinedMessage object; with the Server, message id, and language specified.

public UserDefinedMessage (Microsoft.SqlServer.Management.Smo.Server server, int id, string language);
new Microsoft.SqlServer.Management.Smo.UserDefinedMessage : Microsoft.SqlServer.Management.Smo.Server * int * string -> Microsoft.SqlServer.Management.Smo.UserDefinedMessage
Public Sub New (server As Server, id As Integer, language As String)

Parameters

server
Server
id
Int32
language
String

Applies to

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

Creates a new UserDefinedMessage object; with the Server, message id, and language id, severity and message text specified. Note: this is the minimal constructor which allows inline construction (language type differs from above).

public UserDefinedMessage (Microsoft.SqlServer.Management.Smo.Server server, int id, int language, int severity, string message);
new Microsoft.SqlServer.Management.Smo.UserDefinedMessage : Microsoft.SqlServer.Management.Smo.Server * int * int * int * string -> Microsoft.SqlServer.Management.Smo.UserDefinedMessage
Public Sub New (server As Server, id As Integer, language As Integer, severity As Integer, message As String)

Parameters

server
Server
id
Int32
language
Int32
severity
Int32
message
String

Applies to

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

Creates a new UserDefinedMessage object; with the Server, message id, and language, severity and message text specified. Note: this is the minimal constructor which allows inline construction.

public UserDefinedMessage (Microsoft.SqlServer.Management.Smo.Server server, int id, string language, int severity, string message);
new Microsoft.SqlServer.Management.Smo.UserDefinedMessage : Microsoft.SqlServer.Management.Smo.Server * int * string * int * string -> Microsoft.SqlServer.Management.Smo.UserDefinedMessage
Public Sub New (server As Server, id As Integer, language As String, severity As Integer, message As String)

Parameters

server
Server
id
Int32
language
String
severity
Int32
message
String

Applies to

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

Creates a new UserDefinedMessage object; with the Server, message id, and language id, severity, message text, and logging specified.

public UserDefinedMessage (Microsoft.SqlServer.Management.Smo.Server server, int id, int language, int severity, string message, bool isLogged);
new Microsoft.SqlServer.Management.Smo.UserDefinedMessage : Microsoft.SqlServer.Management.Smo.Server * int * int * int * string * bool -> Microsoft.SqlServer.Management.Smo.UserDefinedMessage
Public Sub New (server As Server, id As Integer, language As Integer, severity As Integer, message As String, isLogged As Boolean)

Parameters

server
Server
id
Int32
language
Int32
severity
Int32
message
String
isLogged
Boolean

Applies to

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

Creates a new UserDefinedMessage object; with the Server, message id, and language, severity, message text, and logging specified.

public UserDefinedMessage (Microsoft.SqlServer.Management.Smo.Server server, int id, string language, int severity, string message, bool isLogged);
new Microsoft.SqlServer.Management.Smo.UserDefinedMessage : Microsoft.SqlServer.Management.Smo.Server * int * string * int * string * bool -> Microsoft.SqlServer.Management.Smo.UserDefinedMessage
Public Sub New (server As Server, id As Integer, language As String, severity As Integer, message As String, isLogged As Boolean)

Parameters

server
Server
id
Int32
language
String
severity
Int32
message
String
isLogged
Boolean

Applies to