Udostępnij przez


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

'Deklaracja
Public Sub Add ( _
    rule As Rule _
)
public void Add (
    Rule rule
)
public:
void Add (
    Rule^ rule
)
public void Add (
    Rule rule
)
public function Add (
    rule : Rule
)

Parameters

  • rule
    Rule object to be added to the Rule Collection.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.