SPResourceTrackingRuleCollection.Get method (SPResourceKind)
Gets a new SPResourceTrackingRule object from the collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function Get ( _
kind As SPResourceKind _
) As SPResourceTrackingRule
'Usage
Dim instance As SPResourceTrackingRuleCollection
Dim kind As SPResourceKind
Dim returnValue As SPResourceTrackingRule
returnValue = instance.Get(kind)
public SPResourceTrackingRule Get(
SPResourceKind kind
)
Parameters
- kind
Type: Microsoft.SharePoint.SPResourceKind
Return value
Type: Microsoft.SharePoint.Administration.SPResourceTrackingRule
Remarks
Throws an KeyNotFoundException if an SPResourceTrackingRule object with the given kind does not exist.
See also
Reference
SPResourceTrackingRuleCollection class