共用方式為


ServerDdlTrigger.AssemblyName 屬性

Gets or sets the name of the assembly that contains the managed code that is executed when the data definition language (DDL) trigger is raised.

此 API 不符合 CLS 標準。 

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

語法

'宣告
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(SqlAssembly), "Server[@Name = '{0}']/Database[@Name = 'master']/SqlAssembly[@Name = '{1}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property AssemblyName As String 
    Get 
    Set
'用途
Dim instance As ServerDdlTrigger 
Dim value As String 

value = instance.AssemblyName

instance.AssemblyName = value
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(SqlAssembly), "Server[@Name = '{0}']/Database[@Name = 'master']/SqlAssembly[@Name = '{1}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string AssemblyName { get; set; }
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(SqlAssembly), L"Server[@Name = '{0}']/Database[@Name = 'master']/SqlAssembly[@Name = '{1}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ AssemblyName {
    String^ get ();
    void set (String^ value);
}
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(SqlAssembly), "Server[@Name = '{0}']/Database[@Name = 'master']/SqlAssembly[@Name = '{1}']", 
    )>]
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member AssemblyName : string with get, set
function get AssemblyName () : String 
function set AssemblyName (value : String)

屬性值

型別:System.String
A String value that specifies the name of the assembly.

範例

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

請參閱

參考

ServerDdlTrigger 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

DDL 觸發程序

CREATE TRIGGER (Transact-SQL)