IMime MessageTry Get Entity Method
Try to get the entity at the specified path.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the entity was found; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
bool TryGetEntity(
string pathSpecifier,
out MimeEntity?? entity
)Parameters
- pathSpecifier String
- The path specifier (e.g. "3.2").
- entity MimeEntity
- The entity at the specified path, if found; otherwise, .
Return Value
Booleanif the entity was found; otherwise, .
Remarks
Gets the entity at the specified path specifier, which uses the same format as PathSpecifier.
The cost is proportional to the depth of the entity rather than the size of the message.
Exceptions
| ArgumentNullException | pathSpecifier is . |