共用方式為


Trigger.InsertOrder 屬性

Gets or sets the order in which the trigger and the insert operation are executed.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property InsertOrder As ActivationOrder 
    Get 
    Set
'用途
Dim instance As Trigger 
Dim value As ActivationOrder 

value = instance.InsertOrder

instance.InsertOrder = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public ActivationOrder InsertOrder { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
property ActivationOrder InsertOrder {
    ActivationOrder get ();
    void set (ActivationOrder value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
member InsertOrder : ActivationOrder with get, set
function get InsertOrder () : ActivationOrder 
function set InsertOrder (value : ActivationOrder)

屬性值

型別:Microsoft.SqlServer.Management.Smo.Agent.ActivationOrder
An ActivationOrder object value that specifies whether the trigger is executed before or after the records are inserted.

範例

建立、改變和移除觸發程式

請參閱

參考

Trigger 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

DML 觸發程序

CREATE TRIGGER (Transact-SQL)