Detaches this object from the native cryptoki library. It calls FreeLibrary.

Namespace:  Cryptware.NCryptoki
Assembly:  NCryptoki (in NCryptoki.dll)

Syntax

Visual Basic (Declaration)
Public Function Detach As Integer
C#
public int Detach()
Visual C++
public:
virtual int Detach() sealed
JavaScript
function detach();

Return Value

0 if no error occurs, an error code otherwise.
Error code could be a Win32 error took by GetLastError(), such as FILE_NOT_FOUND or a PKCS#11 error CryptokiException

Implements

ICryptoki..::..Detach()()()()

Remarks

Detaches this Cryptoki object from the native cryptoki library

See Also