SPResourceTrackingRuleCollection.Add method (SPResourceKind, Int32, Int32)
Adds a new SPResourceTrackingRule object to the collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub Add ( _
kind As SPResourceKind, _
throttlingLimit As Integer, _
loggingLimit As Integer _
)
'Usage
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
)
Parameters
- kind
Type: Microsoft.SharePoint.SPResourceKind
- throttlingLimit
Type: System.Int32
- loggingLimit
Type: System.Int32
Remarks
Throws an ArgumentException if an SPResourceTrackingRule object with the given kind already exists.
See also
Reference
SPResourceTrackingRuleCollection class