SPResourceTrackingRuleCollection.Get method (SPResourceKind)
會從集合取得新的SPResourceTrackingRule物件。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function Get ( _
kind As SPResourceKind _
) As SPResourceTrackingRule
'用途
Dim instance As SPResourceTrackingRuleCollection
Dim kind As SPResourceKind
Dim returnValue As SPResourceTrackingRule
returnValue = instance.Get(kind)
public SPResourceTrackingRule Get(
SPResourceKind kind
)
參數
- kind
Type: Microsoft.SharePoint.SPResourceKind
傳回值
Type: Microsoft.SharePoint.Administration.SPResourceTrackingRule
備註
如果具有指定kindSPResourceTrackingRule物件不存在,會擲回KeyNotFoundException 。
請參閱
參照
SPResourceTrackingRuleCollection class