Net.Pkcs11Interop.LowLevelAPI40.Pkcs11.Pkcs11 C# (CSharp) Method

Pkcs11() public method

Loads PCKS#11 library
public Pkcs11 ( string libraryPath ) : System
libraryPath string Library name or path
return System
        public Pkcs11(string libraryPath)
        {
            try
            {
                if (!string.IsNullOrEmpty(libraryPath))
                    _libraryHandle = UnmanagedLibrary.Load(libraryPath);

                _delegates = new Delegates(_libraryHandle, true);
            }
            catch
            {
                Release();
                throw;
            }
        }

Same methods

Pkcs11::Pkcs11 ( string libraryPath, bool useGetFunctionList ) : System