Compartir a través de


TSqlObject.TryGetScript Método

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

Espacio de nombres:  Microsoft.SqlServer.Dac.Model
Ensamblado:  Microsoft.SqlServer.Dac.Extensions (en Microsoft.SqlServer.Dac.Extensions.dll)

Sintaxis

'Declaración
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 devuelto

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

Vea también

Referencia

TSqlObject Clase

Espacio de nombres Microsoft.SqlServer.Dac.Model