共用方式為


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
)

參數

傳回值

Type: Microsoft.SharePoint.Administration.SPResourceTrackingRule

備註

如果具有指定kindSPResourceTrackingRule物件不存在,會擲回KeyNotFoundException

請參閱

參照

SPResourceTrackingRuleCollection class

SPResourceTrackingRuleCollection members

Get overload

Microsoft.SharePoint.Administration namespace