Udostępnij przez


Właściwość EmptyEnumerator.Current

Zgłasza błąd wskazujący pusty moduł wyliczający.

Przestrzeń nazw:  Microsoft.SqlServer.Dts.Runtime
Zestaw:  Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)

Składnia

'Deklaracja
Public ReadOnly Property Current As Object
    Get
'Użycie
Dim instance As EmptyEnumerator
Dim value As Object

value = instance.Current
public Object Current { get; }
public:
virtual property Object^ Current {
    Object^ get () sealed;
}
abstract Current : Object
override Current : Object
final function get Current () : Object

Wartość właściwości

Typ: System.Object
Obiekt.

Implementacje

IEnumerator.Current

Uwagi

Metoda ta pobiera bieżący obiekt z kolekcja.Dla EmptyEnumerator, będzie nie bieżącego obiektu, aby pobrać kolekcja.Jeśli ta metoda jest używana, powstaje błąd.