Compartilhar via


Método DdlTriggerBase.ScriptHeader

Generates a Transact-SQL script that can be used to re-create the database data definition language (DDL) trigger header as specified by the script options.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Function ScriptHeader ( _
    forAlter As Boolean _
) As String
'Uso
Dim instance As DdlTriggerBase 
Dim forAlter As Boolean 
Dim returnValue As String 

returnValue = instance.ScriptHeader(forAlter)
public string ScriptHeader(
    bool forAlter
)
public:
virtual String^ ScriptHeader(
    bool forAlter
) sealed
abstract ScriptHeader : 
        forAlter:bool -> string  
override ScriptHeader : 
        forAlter:bool -> string
public final function ScriptHeader(
    forAlter : boolean
) : String

Parâmetros

Valor de retorno

Tipo: System.String
A StringCollection system object value that contains a list of Transact-SQL command batch statements that defines the database DDL trigger header.Returns True if the header information can be modified, orFalse if the header information cannot be modified.

Implementa

ITextObject.ScriptHeader(Boolean)

Exemplos

Gerando scripts

Consulte também

Referência

DdlTriggerBase Classe

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Gatilhos DDL