TSqlObject.TryGetScript 方法

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

命名空间:  Microsoft.SqlServer.Dac.Model
程序集:  Microsoft.SqlServer.Dac.Extensions(在 Microsoft.SqlServer.Dac.Extensions.dll 中)

语法

声明
Public Function TryGetScript ( _
    <OutAttribute> ByRef objectScript As String _
) As Boolean
用法
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

参数

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

返回值

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

请参阅

参考

TSqlObject 类

Microsoft.SqlServer.Dac.Model 命名空间