Partilhar via


Método TSqlObject.TryGetScript

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

Namespace:  Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (em Microsoft.SqlServer.Dac.Extensions.dll)

Sintaxe

'Declaração
Public Function TryGetScript ( _
    <OutAttribute> ByRef objectScript As String _
) As Boolean
'Uso
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

Parâmetros

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

Valor de retorno

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

Consulte também

Referência

TSqlObject Classe

Namespace Microsoft.SqlServer.Dac.Model