共用方式為


SPWebCollection.IEnumerable<SPWeb>.GetEnumerator method

會傳回逐一查看集合的強型別列舉值。

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

Syntax

'宣告
Private Function GetEnumerator As IEnumerator(Of SPWeb)
    Implements IEnumerable(Of SPWeb).GetEnumerator
'用途
Dim instance As SPWebCollection
Dim returnValue As IEnumerator(Of SPWeb)

returnValue = CType(instance, IEnumerable(Of SPWeb)).GetEnumerator()
IEnumerator<SPWeb> IEnumerable<SPWeb>.GetEnumerator()

傳回值

Type: System.Collections.Generic.IEnumerator<SPWeb>
逐一查看集合列舉值。

Implements

IEnumerable<T>.GetEnumerator()

請參閱

參照

SPWebCollection class

SPWebCollection members

Microsoft.SharePoint namespace