ServerDdlTrigger.ExecutionContext Property
Gets or sets the execution context type used by server DDL trigger, itself, the caller, or a specified login.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Синтаксис
'Декларация
Public Property ExecutionContext As ServerDdlTriggerExecutionContext
public ServerDdlTriggerExecutionContext ExecutionContext { get; set; }
public:
property ServerDdlTriggerExecutionContext ExecutionContext {
ServerDdlTriggerExecutionContext get ();
void set (ServerDdlTriggerExecutionContext value);
}
/** @property */
public ServerDdlTriggerExecutionContext get_ExecutionContext ()
/** @property */
public void set_ExecutionContext (ServerDdlTriggerExecutionContext value)
public function get ExecutionContext () : ServerDdlTriggerExecutionContext
public function set ExecutionContext (value : ServerDdlTriggerExecutionContext)
Значение свойства
A ServerDdlTriggerExecutionContext object that specifies the type of execution context used by the server DDL trigger.
Замечания
Изменения текста
If you specify that the execution context type is ExecuteAsLogin then you must also set the ExecutionContextLogin property to specify which login to use.
Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.
Пример
How to: Create, Alter, and Remove a Trigger in Visual Basic .NET
Синхронизация потоков
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Платформы
Платформы разработки
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
Целевые платформы
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
См. также
Справочник
ServerDdlTrigger Class
ServerDdlTrigger Members
Microsoft.SqlServer.Management.Smo Namespace
Другие ресурсы
Creating, Altering, and Removing Triggers
Триггеры DDL
CREATE TRIGGER (Transact-SQL)