Exemple #1
0
 /// <summary>
 /// The <see cref="M:System.Security.Cryptography.Pkcs.CmsRecipientCollection.Remove(System.Security.Cryptography.Pkcs.CmsRecipient)"/> method removes a recipient from the <see cref="T:System.Security.Cryptography.Pkcs.CmsRecipientCollection"/> collection.
 /// </summary>
 /// <param name="recipient">A <see cref="T:System.Security.Cryptography.Pkcs.CmsRecipient"/> object that represents the recipient to remove from the collection.</param><exception cref="T:System.ArgumentNullException"><paramref name="recipient"/> is null.</exception>
 public void Remove(CmsRecipient recipient)
 {
     if (recipient == null)
     {
         throw new ArgumentNullException("recipient");
     }
     this.m_recipients.Remove((object)recipient);
 }
Exemple #2
0
 /// <summary>
 /// The <see cref="M:System.Security.Cryptography.Pkcs.CmsRecipientCollection.Add(System.Security.Cryptography.Pkcs.CmsRecipient)"/> method adds a recipient to the <see cref="T:System.Security.Cryptography.Pkcs.CmsRecipientCollection"/> collection.
 /// </summary>
 ///
 /// <returns>
 /// If the method succeeds, the method returns an <see cref="T:System.Int32"/> value that represents the zero-based position where the recipient is to be inserted.If the method fails, it throws an exception.
 /// </returns>
 /// <param name="recipient">A <see cref="T:System.Security.Cryptography.Pkcs.CmsRecipient"/> object that represents the recipient to add to the <see cref="T:System.Security.Cryptography.Pkcs.CmsRecipientCollection"/> collection.</param><exception cref="T:System.ArgumentNullException"><paramref name="recipient"/> is null.</exception>
 public int Add(CmsRecipient recipient)
 {
     if (recipient == null)
     {
         throw new ArgumentNullException("recipient");
     }
     else
     {
         return(this.m_recipients.Add((object)recipient));
     }
 }
Exemple #3
0
 /// <summary>
 /// The <see cref="M:System.Security.Cryptography.Pkcs.CmsRecipientCollection.#ctor(System.Security.Cryptography.Pkcs.CmsRecipient)"/> constructor creates an instance of the <see cref="T:System.Security.Cryptography.Pkcs.CmsRecipientCollection"/> class and adds the specified recipient.
 /// </summary>
 /// <param name="recipient">An instance of the <see cref="T:System.Security.Cryptography.Pkcs.CmsRecipient"/> class that represents the specified CMS/PKCS #7 recipient.</param>
 public CmsRecipientCollection(CmsRecipient recipient)
 {
     this.m_recipients = new ArrayList(1);
     this.m_recipients.Add((object)recipient);
 }