MimeMessageTryGetEntity Method

Try to get the entity at the specified path.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public 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

Boolean
if the entity was found; otherwise, .

Implements

IMimeMessageTryGetEntity(String, MimeEntity)

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 .

See Also