CertificateStore Object : Load Method |
Visual Basic |
---|
Public Sub Load( _ ByVal CertFileName As String, _ Optional ByVal Password As String _ ) |
Use this method to load certificates contained in a digital certificate file (.pfx file) into the CertificateStore. The desired certificate can then be chosen from the store.
Using the Load method sets the StoreLocation property to locationRemote and the StoreName property to "". The values of CertFileName and Password passed in are saved internally to be used when the Refresh method is called. If either the StoreLocation or StoreName properties are set, the internal CertFileName and Password are cleared.
This method may generate the following error code (refer to ErrorConstants for a complete list of error codes):