SPResourceTrackingRuleCollection.Add method (SPResourceKind, Int32, Int32)
會將新的SPResourceTrackingRule物件加入集合。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
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
Type: Microsoft.SharePoint.SPResourceKind
- throttlingLimit
Type: System.Int32
- loggingLimit
Type: System.Int32
備註
如果具有指定kindSPResourceTrackingRule物件已經存在,會擲回ArgumentException 。
請參閱
參照
SPResourceTrackingRuleCollection class