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.