AnalysisAlternateBaseCollection.AnalysisAlternateCollectionEnumeratorBase.Current - свойство
Обновлен: Ноябрь 2007
Gets the AnalysisAlternateBase object in the AnalysisAlternateBaseCollection to which the enumerator is pointing.
Пространство имен: System.Windows.Ink.AnalysisCore
Сборка: IACore (в IACore.dll)
Синтаксис
'Декларация
Public ReadOnly Property Current As AnalysisAlternateBase
'Применение
Dim instance As AnalysisAlternateBaseCollection..::.AnalysisAlternateCollectionEnumeratorBase
Dim value As AnalysisAlternateBase
value = instance.Current
public AnalysisAlternateBase Current { get; }
public:
property AnalysisAlternateBase^ Current {
AnalysisAlternateBase^ get ();
}
/** @property */
public AnalysisAlternateBase get_Current()
public function get Current () : AnalysisAlternateBase
Значение свойства
Тип: System.Windows.Ink.AnalysisCore.AnalysisAlternateBase
The AnalysisAlternateBase object in the AnalysisAlternateBaseCollection to which the enumerator is pointing.
Заметки
After an AnalysisAlternateBaseCollection.AnalysisAlternateCollectionEnumeratorBase enumerator is created or after the Reset method is called, the MoveNext method must be called to advance the enumerator to the first element of the collection before reading the value of the Current property. Otherwise, the Current property is undefined.
The Current property throws an exception if the last call to the MoveNext method returns false. If the last call to the MoveNext method returns false, the enumerator has reached the end of the AnalysisAlternateBaseCollection.
The Current property does not move the position of the enumerator. Consecutive calls to the Current property return the same object until either the MoveNext method or the Reset method is called.
An enumerator remains valid as long as the collection is unchanged. If changes are made to the collection, such as adding, modifying, or deleting elements, the enumerator is invalidated irrecoverably. The next call to the MoveNext method or the Reset method throws an InvalidOperationException. If the collection is modified between calling the MoveNext method and calling the Current property, the Current property returns the element to which it is set, even if the enumerator is already invalidated.
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
AnalysisAlternateBaseCollection.AnalysisAlternateCollectionEnumeratorBase Класс
AnalysisAlternateBaseCollection.AnalysisAlternateCollectionEnumeratorBase - члены