共用方式為


Add 方法

Adds a new Rule to the Rule Collection

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

語法

'宣告
Public Sub Add ( _
    rule As Rule _
)
'用途
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
)

參數

範例

使用集合