共用方式為


ScriptCreate 方法

根據參數來更改 SqlSmoObject

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Protected Overridable Sub ScriptCreate ( _
    query As StringCollection, _
    so As ScriptingOptions _
)
'用途
Dim query As StringCollection
Dim so As ScriptingOptions

Me.ScriptCreate(query, so)
protected virtual void ScriptCreate(
    StringCollection query,
    ScriptingOptions so
)
protected:
virtual void ScriptCreate(
    StringCollection^ query, 
    ScriptingOptions^ so
)
abstract ScriptCreate : 
        query:StringCollection * 
        so:ScriptingOptions -> unit 
override ScriptCreate : 
        query:StringCollection * 
        so:ScriptingOptions -> unit 
protected function ScriptCreate(
    query : StringCollection, 
    so : ScriptingOptions
)