CategoryCollection.IEnumerable.GetEnumerator 方法
返回一个枚举数循环访问集合中的类别。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Private Function GetEnumerator As IEnumerator
Implements IEnumerable.GetEnumerator
用法
Dim instance As CategoryCollection
Dim returnValue As IEnumerator
returnValue = CType(instance, IEnumerable).GetEnumerator()
IEnumeratorIEnumerable.GetEnumerator()
返回值
类型:System.Collections.IEnumerator
IEnumerator 对象,该对象可用于循环访问集合中的类别。
实现
异常
异常 | 条件 |
---|---|
UnauthorizedAccessException | 如果用户不具有所需的权限。 |