다음을 통해 공유


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.dll의 Microsoft.SqlServer.Smo

구문

‘선언
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)

예제

스크립팅