DdlTriggerBase 类
The DdlTriggerBase is a base class that is inherited by the DatabaseDdlTrigger object. This represents a SQL Server database data definition language (DDL) trigger.
继承层次结构
System. . :: . .Object
Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .NamedSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .ScriptNameObjectBase
Microsoft.SqlServer.Management.Smo..::..DdlTriggerBase
Microsoft.SqlServer.Management.Smo. . :: . .DatabaseDdlTrigger
Microsoft.SqlServer.Management.Smo. . :: . .ServerDdlTrigger
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public MustInherit Class DdlTriggerBase _
Inherits ScriptNameObjectBase _
Implements ICreatable, IAlterable, IDroppable, IScriptable, _
ITextObject
用法
Dim instance As DdlTriggerBase
public abstract class DdlTriggerBase : ScriptNameObjectBase,
ICreatable, IAlterable, IDroppable, IScriptable, ITextObject
public ref class DdlTriggerBase abstract : public ScriptNameObjectBase,
ICreatable, IAlterable, IDroppable, IScriptable, ITextObject
[<AbstractClassAttribute>]
type DdlTriggerBase =
class
inherit ScriptNameObjectBase
interface ICreatable
interface IAlterable
interface IDroppable
interface IScriptable
interface ITextObject
end
public abstract class DdlTriggerBase extends ScriptNameObjectBase implements ICreatable, IAlterable, IDroppable, IScriptable, ITextObject
DdlTriggerBase 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (从 SqlSmoObject 继承。) | |
IsTouched | Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (从 SqlSmoObject 继承。) | |
Name | Gets or sets the name of the object. (从 NamedSmoObject 继承。) | |
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 继承。) | |
Properties | Gets a collection of Property objects that represent the object properties. (从 SqlSmoObject 继承。) | |
ScalarResult | Gets the scalar result for the referenced object. (从 SqlSmoObject 继承。) | |
State | Gets the state of the referenced object. (从 SmoObjectBase 继承。) | |
TextBody | Gets or sets the body text that is used in the definition of the database data definition language (DDL) trigger. | |
TextHeader | Gets or sets the header text that is used in the definition of the database data definition language (DDL) trigger. | |
TextMode | Gets or sets the Boolean property value that specifies whether the DatabaseDdlTrigger header is editable as text. | |
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 继承。) |
页首
注释
DDL triggers run a Transact-SQL or user-defined function in response to certain DDL events.
SQL Server Management Objects (SMO) provides programmatic access to allow management of all DDL trigger functionality with the DatabaseDdlTrigger object and the ServerDdlTrigger object.
Database DDL triggers respond to events within the scope of the database and server DDL triggers respond to events within the scope of the SQL Server instance.
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。