Método ScriptDrop
Drops an existing rule script.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Protected Overrides Sub ScriptDrop ( _
queries As StringCollection, _
so As ScriptingOptions _
)
'Uso
Dim queries As StringCollection
Dim so As ScriptingOptions
Me.ScriptDrop(queries, so)
protected override void ScriptDrop(
StringCollection queries,
ScriptingOptions so
)
protected:
virtual void ScriptDrop(
StringCollection^ queries,
ScriptingOptions^ so
) override
abstract ScriptDrop :
queries:StringCollection *
so:ScriptingOptions -> unit
override ScriptDrop :
queries:StringCollection *
so:ScriptingOptions -> unit
protected override function ScriptDrop(
queries : StringCollection,
so : ScriptingOptions
)
Parâmetros
- queries
Tipo: System.Collections.Specialized. . :: . .StringCollection
StringCollection object containing the revised query.
- so
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
ScriptingOptionsobject contains options associated with the script.
Comentários
In SMO, rules are represented by the Rule object. The rule is defined by the TextBody property, which is a text string that contains a condition expression that uses operators or predicates, such as IN, LIKE, or BETWEEN. A rule cannot reference columns or other database objects. Built-in functions that do not reference database objects can be included.
Consulte também