Condividi tramite


Metodo TSqlObject.TryGetScript

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

Spazio dei nomi  Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

Sintassi

'Dichiarazione
Public Function TryGetScript ( _
    <OutAttribute> ByRef objectScript As String _
) As Boolean
'Utilizzo
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

Parametri

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

Valore restituito

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

Vedere anche

Riferimento

TSqlObject Classe

Spazio dei nomi Microsoft.SqlServer.Dac.Model