Поделиться через


AnalysisWarningCollection.AnalysisWarningCollectionEnumerator.Current - свойство

Обновлен: Ноябрь 2007

Gets the AnalysisWarning object in the AnalysisWarningCollection to which the enumerator is pointing.

Пространство имен:  System.Windows.Ink
Сборка:  IAWinFX (в IAWinFX.dll)

Синтаксис

'Декларация
Public ReadOnly Property Current As AnalysisWarning
'Применение
Dim instance As AnalysisWarningCollection..::.AnalysisWarningCollectionEnumerator
Dim value As AnalysisWarning

value = instance.Current
public AnalysisWarning Current { get; }
public:
property AnalysisWarning^ Current {
    AnalysisWarning^ get ();
}
/** @property */
public AnalysisWarning get_Current()
public function get Current () : AnalysisWarning

Значение свойства

Тип: System.Windows.Ink.AnalysisWarning
The AnalysisWarning object in the AnalysisWarningCollection to which the enumerator is pointing.

Заметки

After an AnalysisWarningCollection.AnalysisWarningCollectionEnumerator is created, or after the Reset method is called, call the MoveNext method 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, then the enumerator reaches the end of the AnalysisWarningCollection.

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 remains unchanged. If changes are made to the collection, such as adding, modifying, or deleting elements, the enumerator is invalidated and no longer recoverable. The next call to the MoveNext method or the Reset method throws an InvalidOperationException exception. If the collection is modified between calling the MoveNext method and calling the Current property, then the Current property returns the element to which it is set, even if the enumerator is already invalidated.

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

AnalysisWarningCollection.AnalysisWarningCollectionEnumerator Класс

AnalysisWarningCollection.AnalysisWarningCollectionEnumerator - члены

System.Windows.Ink - пространство имен