共用方式為


SPBaseCollection.GetTypedEnumerator<T> method

傳回逐一查看集合的型別安全列舉值。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function GetTypedEnumerator(Of T As Class) As IEnumerator(Of T)
'用途
Dim instance As SPBaseCollection
Dim returnValue As IEnumerator(Of T)

returnValue = instance.GetTypedEnumerator()
public IEnumerator<T> GetTypedEnumerator<T>()
where T : class

Type parameters

  • T
    集合中包含的物件型別。

傳回值

Type: System.Collections.Generic.IEnumerator<T>
IEnumerator<T> 物件以逐一查看集合。

請參閱

參照

SPBaseCollection class

SPBaseCollection members

Microsoft.SharePoint namespace