2 writes to _certStore
System.Security.Cryptography (2)
System\Security\Cryptography\X509Certificates\StorePal.Windows.cs (2)
83_certStore = null!; 105_certStore = certStore;
15 references to _certStore
System.Security.Cryptography (15)
System\Security\Cryptography\X509Certificates\StorePal.Windows.cs (9)
43while (Interop.crypt32.CertEnumCertificatesInStore(_certStore, ref pCertContext)) 54if (!Interop.Crypt32.CertAddCertificateContextToStore(_certStore, certContext, Interop.Crypt32.CertStoreAddDisposition.CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES, IntPtr.Zero)) 67if (!Interop.crypt32.CertFindCertificateInStore(_certStore, Interop.Crypt32.CertFindType.CERT_FIND_EXISTING, pCertContext, ref enumCertContext)) 80SafeCertStoreHandle? certStore = _certStore; 90get { return _certStore; } 97if (_certStore == null || _certStore.IsInvalid || _certStore.IsClosed) 99return _certStore;
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (6)
33if (!Interop.crypt32.CertEnumCertificatesInStore(_certStore, ref pCertContext)) 56if (!Interop.crypt32.CertEnumCertificatesInStore(_certStore, ref pCertContext)) 143if (!Interop.Crypt32.PFXExportCertStoreEx(_certStore, ref dataBlob, password, exportParams, flags)) 154if (!Interop.Crypt32.PFXExportCertStoreEx(_certStore, ref dataBlob, password, exportParams, flags)) 256if (!Interop.Crypt32.CertSaveStore(_certStore, Interop.Crypt32.CertEncodingType.All, dwSaveAs, Interop.Crypt32.CertStoreSaveTo.CERT_STORE_SAVE_TO_MEMORY, ref blob, 0)) 263if (!Interop.Crypt32.CertSaveStore(_certStore, Interop.Crypt32.CertEncodingType.All, dwSaveAs, Interop.Crypt32.CertStoreSaveTo.CERT_STORE_SAVE_TO_MEMORY, ref blob, 0))