System.Security.Cryptography.X509Certificates.X509CertificateCollection.AddRange C# (CSharp) Method

AddRange() public method

public AddRange ( System value ) : void
value System
return void
        public void AddRange(System.Security.Cryptography.X509Certificates.X509Certificate[] value)
        {
        }

Same methods

X509CertificateCollection::AddRange ( X509Certificate value ) : void
X509CertificateCollection::AddRange ( X509CertificateCollection value ) : void

Usage Example

Example #1
0
        public GcmXmppConnection (GcmXmppConfiguration configuration)
        {
            authCompletion = new TaskCompletionSource<bool> ();

            notifications = new Dictionary<string,CompletableNotification> ();
            Configuration = configuration;

            certificates = new X509CertificateCollection ();

            // Add local/machine certificate stores to our collection if requested
            //if (Configuration.AddLocalAndMachineCertificateStores) {
                var store = new X509Store (StoreLocation.LocalMachine);
                certificates.AddRange (store.Certificates);

                store = new X509Store (StoreLocation.CurrentUser);
                certificates.AddRange (store.Certificates);
            //}

            // Add optionally specified additional certs into our collection
//            if (Configuration.AdditionalCertificates != null) {
//                foreach (var addlCert in Configuration.AdditionalCertificates)
//                    certificates.Add (addlCert);
//            }

            // Finally, add the main private cert for authenticating to our collection
//            if (certificate != null)
//                certificates.Add (certificate);
        }
All Usage Examples Of System.Security.Cryptography.X509Certificates.X509CertificateCollection::AddRange