Méthode DefaultRuleBase.ScriptHeader
Generates a Transact-SQL script that can be used to re-create the default or rule header as specified by the script options.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Function ScriptHeader ( _
forAlter As Boolean _
) As String
'Utilisation
Dim instance As DefaultRuleBase
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 header can be altered.If True, the header can be altered.If False, the header cannot be altered.
Valeur de retour
Type : System.String
A StringCollection system object value that contains a list of Transact-SQL command batch statements that defines the default or rule header.
Implémente
ITextObject.ScriptHeader(Boolean)
Exemples
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo