Dela via


RuleCollection.Add Method

Adds a new Rule to the Rule Collection

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub Add ( _
    rule As Rule _
)
'Usage
Dim instance As RuleCollection
Dim rule As Rule

instance.Add(rule)
public void Add(
    Rule rule
)
public:
void Add(
    Rule^ rule
)
member Add : 
        rule:Rule -> unit 
public function Add(
    rule : Rule
)

Parameters