ServiceManager.GetEnumerator 方法
在衍生類別中覆寫時,擷取這個 ServiceManager 之已發行服務的列舉值。
命名空間: Microsoft.Windows.Design
組件: Microsoft.Windows.Design.Extensibility (在 Microsoft.Windows.Design.Extensibility.dll 中)
語法
'宣告
Public MustOverride Function GetEnumerator As IEnumerator(Of Type)
public abstract IEnumerator<Type> GetEnumerator()
public:
virtual IEnumerator<Type^>^ GetEnumerator() abstract
abstract GetEnumerator : unit -> IEnumerator<Type>
public abstract function GetEnumerator() : IEnumerator<Type>
傳回值
型別:System.Collections.Generic.IEnumerator<Type>
已發行服務的列舉。
實作
IEnumerable<T>.GetEnumerator()
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。