Partager via


ScriptHeader méthode

Returns the text header with the option to modify the text.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Function ScriptHeader ( _
    forAlter As Boolean _
) As String
'Utilisation
Dim instance As StoredProcedure
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

Paramètres

  • forAlter
    Type : System. . :: . .Boolean
    A Boolean value that specifies whether the text header is read-only or can be modified.
    If True, the text header can be modified.
    If False, the text header is read-only.

Valeur de retour

Type : System. . :: . .String
A String value that specifies the text header.

Implémente

ITextObject. . :: . .ScriptHeader(Boolean)