SPResourceTrackingRuleCollection.Add 方法 (SPResourceKind, Int32, Int32)

向集合中添加一个新的SPResourceTrackingRule对象。

命名空间:  Microsoft.SharePoint.Administration
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Sub Add ( _
    kind As SPResourceKind, _
    throttlingLimit As Integer, _
    loggingLimit As Integer _
)
用法
Dim instance As SPResourceTrackingRuleCollection
Dim kind As SPResourceKind
Dim throttlingLimit As Integer
Dim loggingLimit As Integer

instance.Add(kind, throttlingLimit, loggingLimit)
public void Add(
    SPResourceKind kind,
    int throttlingLimit,
    int loggingLimit
)

参数

备注

如果已存在具有给定kind的SPResourceTrackingRule对象,将引发ArgumentException

另请参阅

引用

SPResourceTrackingRuleCollection 类

SPResourceTrackingRuleCollection 成员

Add 重载

Microsoft.SharePoint.Administration 命名空间