共用方式為


Trigger.ClassName 屬性

Gets or sets the name of the class that is called by the referenced trigger.

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

語法

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

value = instance.ClassName

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

屬性值

型別:System.String
A String value that specifies the name of the class that is called by the referenced trigger.

備註

A value is required for the ClassName property only when the ImplementationType property is set to SqlClr.

範例

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

請參閱

參考

Trigger 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

DML 觸發程序

CREATE TRIGGER (Transact-SQL)