ITriggerFactory.CreateDatabaseDdlTrigger Method
Creates an IMutableDatabaseDdlTrigger object that belongs to the specified IDatabase object and has the specified name.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Function CreateDatabaseDdlTrigger ( _
database As IDatabase, _
name As String _
) As IMutableDatabaseDdlTrigger
'Usage
Dim instance As ITriggerFactory
Dim database As IDatabase
Dim name As String
Dim returnValue As IMutableDatabaseDdlTrigger
returnValue = instance.CreateDatabaseDdlTrigger(database, _
name)
IMutableDatabaseDdlTrigger CreateDatabaseDdlTrigger(
IDatabase database,
string name
)
IMutableDatabaseDdlTrigger^ CreateDatabaseDdlTrigger(
IDatabase^ database,
String^ name
)
abstract CreateDatabaseDdlTrigger :
database:IDatabase *
name:string -> IMutableDatabaseDdlTrigger
function CreateDatabaseDdlTrigger(
database : IDatabase,
name : String
) : IMutableDatabaseDdlTrigger
Parameters
- database
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabase
The IDatabase object that is the parent of trigger object.
- name
Type: System.String
The name of the trigger object to create.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableDatabaseDdlTrigger
An IMutableDmlTrigger object.