Share via


TSqlObject.TryGetScript Method

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

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

Syntax

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

Parameters

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

Return Value

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

See Also

Reference

TSqlObject Class

Microsoft.SqlServer.Dac.Model Namespace