Freigeben über


TSqlObject.TryGetScript-Methode

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

Parameter

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

Rückgabewert

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

Siehe auch

Verweis

TSqlObject Klasse

Microsoft.SqlServer.Dac.Model-Namespace