Partager via


Méthode TSqlObject.TryGetScript

Attempts to generate a script from the object’s AST.

Espace de noms :  Microsoft.SqlServer.Dac.Model
Assembly :  Microsoft.SqlServer.Dac.Extensions (en Microsoft.SqlServer.Dac.Extensions.dll)

Syntaxe

'Déclaration
Public Function TryGetScript ( _
    <OutAttribute> ByRef objectScript As String _
) As Boolean
'Utilisation
Dim instance As TSqlObject 
Dim objectScript As String 
Dim returnValue As Boolean 

returnValue = instance.TryGetScript(objectScript)
public bool TryGetScript(
    out string objectScript
)
public:
bool TryGetScript(
    [OutAttribute] String^% objectScript
)
member TryGetScript : 
        objectScript:string byref -> bool
public function TryGetScript(
    objectScript : String
) : boolean

Paramètres

  • objectScript
    Type : System.String%
    The create script generated for the object.

Valeur de retour

Type : System.Boolean
true if DDL creation script created; otherwise, false.

Voir aussi

Référence

TSqlObject Classe

Espace de noms Microsoft.SqlServer.Dac.Model