Click or drag to resize
MimeKit

MimeIteratorDepth Property

Get the depth of the current entity.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public int Depth { get; }

Property Value

Int32
The depth.
Exceptions
ExceptionCondition
InvalidOperationException Either MoveNext has not been called or MoveNext has moved beyond the end of the message.
Remarks
After an iterator is created or after the Reset method is called, the MoveNext method must be called to advance the iterator to the first entity of the message before reading the value of the Depth property; otherwise, Depth throws a InvalidOperationException. Depth also throws a InvalidOperationException if the last call to MoveNext returned false, which indicates the end of the message.
See Also