Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IIterator<T>.Current Property
Definition
- Namespace:
- Windows.Foundation.Collections
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the current item in the collection.
public:
property T Current { T get(); };
T Current();
public T Current { get; }
Public ReadOnly Property Current As T
Property Value
The current item in the collection.
Remarks
It is an error to access this property if the iterator has no current item.
If the underlying collection has changed, the iterator may throw an exception.
.NET Framework If the underlying collection has changed, the iterator may throw a
COMExceptionexception with an HResult of0x8000000C(E_CHANGED_STATE).
C++/WinRT If the underlying collection has changed, the iterator may throw a
hresult_changed_stateexception.
C++/CX If the underlying collection has changed, the iterator may throw a
ChangedStateExceptionexception.
Applies to
See also
Feedback
Was this page helpful?
