共用方式為


SPElementDefinitionCollection.IEnumerable.GetEnumerator method

會取得逐一查看集合的列舉值。

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

Syntax

'宣告
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Private Function GetEnumerator As IEnumerator
    Implements IEnumerable.GetEnumerator
'用途
Dim instance As SPElementDefinitionCollection
Dim returnValue As IEnumerator

returnValue = CType(instance, IEnumerable).GetEnumerator()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
IEnumeratorIEnumerable.GetEnumerator()

傳回值

Type: System.Collections.IEnumerator
可以列舉集合成員的物件。

Implements

IEnumerable.GetEnumerator()

請參閱

參照

SPElementDefinitionCollection class

SPElementDefinitionCollection members

Microsoft.SharePoint.Administration namespace