UserDefinedMessage 类
The UserDefinedMessage object represents a user-defined message.
继承层次结构
System. . :: . .Object
Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .MessageObjectBase
Microsoft.SqlServer.Management.Smo..::..UserDefinedMessage
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public NotInheritable Class UserDefinedMessage _
Inherits MessageObjectBase _
Implements ICreatable, IDroppable, IAlterable, IScriptable
用法
Dim instance As UserDefinedMessage
public sealed class UserDefinedMessage : MessageObjectBase,
ICreatable, IDroppable, IAlterable, IScriptable
public ref class UserDefinedMessage sealed : public MessageObjectBase,
ICreatable, IDroppable, IAlterable, IScriptable
[<SealedAttribute>]
type UserDefinedMessage =
class
inherit MessageObjectBase
interface ICreatable
interface IDroppable
interface IAlterable
interface IScriptable
end
public final class UserDefinedMessage extends MessageObjectBase implements ICreatable, IDroppable, IAlterable, IScriptable
UserDefinedMessage 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
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 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 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 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 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 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) | 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. |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (从 SqlSmoObject 继承。) |
![]() |
ID | Gets the ID value that uniquely identifies the user-defined message. |
![]() |
IsLogged | Gets or sets the Boolean property value that specifies whether the message is logged to the Microsoft Windows event log. |
![]() |
IsTouched | Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (从 SqlSmoObject 继承。) |
![]() |
Language | Gets or sets the language in which the message is written. |
![]() |
LanguageID | Gets or sets the ID value that uniquely identifies the language in which the message is written. |
![]() |
ObjectInSpace | Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (从 SqlSmoObject 继承。) |
![]() |
Parent | Gets the Server object that specifies the parent of the UserDefinedMessage object. |
![]() |
Properties | Gets a collection of Property objects that represent the object properties. (从 SqlSmoObject 继承。) |
![]() |
ScalarResult | Gets the scalar result for the referenced object. (从 SqlSmoObject 继承。) |
![]() |
Severity | Gets or sets the severity of the user-defined message. |
![]() |
State | Gets the state of the referenced object. (从 SmoObjectBase 继承。) |
![]() |
Text | Gets or sets the textual description of the user-defined message. |
![]() |
Urn | Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (从 SqlSmoObject 继承。) |
![]() |
UserData | Gets or sets user-defined data associated with the referenced object. (从 SmoObjectBase 继承。) |
页首
方法
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
IAlienObjectDiscover | (从 SqlSmoObject 继承。) |
![]() ![]() |
IAlienObjectGetParent | (从 SqlSmoObject 继承。) |
![]() ![]() |
IAlienObjectGetProperty | (从 SqlSmoObject 继承。) |
![]() ![]() |
ISfcPropertyProviderGetPropertySet | (从 SqlSmoObject 继承。) |
![]() ![]() |
IAlienObjectGetUrn | (从 SqlSmoObject 继承。) |
![]() ![]() |
IAlienObjectResolve | (从 SqlSmoObject 继承。) |
![]() ![]() |
IAlienObjectSetProperty | (从 SqlSmoObject 继承。) |
页首
注释
The UserDefinedMessage object represents messages that have been defined by the user and SystemMessage object represents messages that are already defined by the system.
To get or set UserDefinedMessage object properties, users can be a member of the public fixed server role.
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。