共用方式為


ServerAuditSpecificationCollection.Add 方法

Adds a ServerAuditSpecification object to the ServerAuditSpecificationCollection collection.

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

語法

'宣告
Public Sub Add ( _
    serverAuditSpecification As ServerAuditSpecification _
)
'用途
Dim instance As ServerAuditSpecificationCollection 
Dim serverAuditSpecification As ServerAuditSpecification

instance.Add(serverAuditSpecification)
public void Add(
    ServerAuditSpecification serverAuditSpecification
)
public:
void Add(
    ServerAuditSpecification^ serverAuditSpecification
)
member Add : 
        serverAuditSpecification:ServerAuditSpecification -> unit
public function Add(
    serverAuditSpecification : ServerAuditSpecification
)

參數

範例

使用集合

請參閱

參考

ServerAuditSpecificationCollection 類別

Microsoft.SqlServer.Management.Smo 命名空間