Język

CmsRecipientCollection.Add(CmsRecipient) Metoda

Definicja

Metoda Add(CmsRecipient) dodaje adresata do kolekcji CmsRecipientCollection .

public:
 int Add(System::Security::Cryptography::Pkcs::CmsRecipient ^ recipient);
public int Add(System.Security.Cryptography.Pkcs.CmsRecipient recipient);
member this.Add : System.Security.Cryptography.Pkcs.CmsRecipient -> int
Public Function Add (recipient As CmsRecipient) As Integer

Parametry

recipient
CmsRecipient

CmsRecipient Obiekt reprezentujący adresata, który ma zostać dodany do kolekcjiCmsRecipientCollection.

Zwraca

Jeśli metoda powiedzie się, metoda zwraca wartość reprezentującą pozycję zerową Int32 , w której odbiorca ma zostać wstawiony.

Jeśli metoda nie powiedzie się, zgłasza wyjątek.

Wyjątki

Parametr recipient ma wartość null.

Dotyczy

Zobacz też