Share via


Scripter 類別

The Scripter object is the overall, top-level object for managing scripting operations.

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

語法

'宣告
Public Class Scripter _
    Inherits DependencyWalker
'用途
Dim instance As Scripter
public class Scripter : DependencyWalker
public ref class Scripter : public DependencyWalker
type Scripter =  
    class
        inherit DependencyWalker
    end
public class Scripter extends DependencyWalker

備註

The Scripter object allows programmatic access to scripting settings and is responsible for the following scripting functionality:

  • Finding dependencies.

  • Output script to memory and file.

  • Calling the instance objects to be scripted.

  • Managing context of a script operation, such as checking whether an object has already been scripted.

To get Scripter object properties, users can be a member of the public fixed server role.

To set Scripter object properties, users can be a member of the public fixed server role.

To run a script operation, users require permissions for the objects that are being scripted.

Thread Safety

這種類型的任何公用靜態 (在 Microsoft Visual Basic 中則為 Shared) 成員都可用於多執行緒作業。並不是所有的執行個體成員都保證可以用於所有的執行緒。

範例

指令碼

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo. . :: . .DependencyWalker
    Microsoft.SqlServer.Management.Smo..::..Scripter

執行緒安全性

這個類型的任何公用static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員都可以是安全執行緒。