共用方式為


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.

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

語法

'宣告
Public Function ScriptHeader ( _
    forAlter As Boolean _
) As String
'用途
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

參數

  • forAlter
    型別:System. . :: . .Boolean
    A Boolean value that specifies whether the header can be altered.
    If True, the header information can be altered.
    If False, the header information cannot be altered.

傳回值

型別:System. . :: . .String
A StringCollection system object value that contains a list of Transact-SQL command batch statements that defines the database DDL trigger header.

實作

ITextObject. . :: . .ScriptHeader(Boolean)

範例

指令碼