CmsRecipientCollectionContains Method

Check if the collection contains a recipient.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public bool Contains(
	CmsRecipient recipient
)

Parameters

recipient  CmsRecipient
The recipient.

Return Value

Boolean
if the specified recipient exists; otherwise, .

Implements

ICollectionTContains(T)

Remarks

Determines whether the collection contains the specified recipient.

Exceptions

ArgumentNullException recipient is .

See Also