AuditSpecification.ScriptCreate Method
Creates a new audit specification script.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Protected Overrides Sub ScriptCreate ( _
query As StringCollection, _
so As ScriptingOptions _
)
'Usage
Dim query As StringCollection
Dim so As ScriptingOptions
Me.ScriptCreate(query, so)
protected override void ScriptCreate(
StringCollection query,
ScriptingOptions so
)
protected:
virtual void ScriptCreate(
StringCollection^ query,
ScriptingOptions^ so
) override
abstract ScriptCreate :
query:StringCollection *
so:ScriptingOptions -> unit
override ScriptCreate :
query:StringCollection *
so:ScriptingOptions -> unit
protected override function ScriptCreate(
query : StringCollection,
so : ScriptingOptions
)
Parameters
- query
Type: System.Collections.Specialized.StringCollection
A StringCollection object that specifies the audit specification script to be created.
- so
Type: Microsoft.SqlServer.Management.Smo.ScriptingOptions
A ScriptingOptions object that specifies the scripting options associated with the new script.