共用方式為


Trigger 建構 (SqlSmoObject, String)

Initializes a new instance of the Trigger class on the specified object, and with the specified name.

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

語法

'宣告
Public Sub New ( _
    parent As SqlSmoObject, _
    name As String _
)
'用途
Dim parent As SqlSmoObject
Dim name As String

Dim instance As New Trigger(parent, _
    name)
public Trigger(
    SqlSmoObject parent,
    string name
)
public:
Trigger(
    SqlSmoObject^ parent, 
    String^ name
)
new : 
        parent:SqlSmoObject * 
        name:string -> Trigger
public function Trigger(
    parent : SqlSmoObject, 
    name : String
)

參數