Pkcs11Interop  4.0.0
Public Member Functions | Protected Member Functions | Properties | List of all members
Net.Pkcs11Interop.Common.Pkcs11Exception Class Reference

Exception with the name of PKCS#11 method that failed and its return value More...

Inherits Exception.

Public Member Functions

 Pkcs11Exception (string method, CKR rv)
 Initializes new instance of Pkcs11Exception class More...
 
override void GetObjectData (SerializationInfo info, StreamingContext context)
 Populates a SerializationInfo with the data needed to serialize the target object More...
 

Protected Member Functions

 Pkcs11Exception (SerializationInfo info, StreamingContext context)
 Initializes new instance of Pkcs11Exception class with serialized data More...
 

Properties

string Method [get]
 Name of method that caused exception More...
 
CKR RV [get]
 Return value of method that caused exception More...
 

Detailed Description

Exception with the name of PKCS#11 method that failed and its return value

Constructor & Destructor Documentation

Net.Pkcs11Interop.Common.Pkcs11Exception.Pkcs11Exception ( string  method,
CKR  rv 
)

Initializes new instance of Pkcs11Exception class

Parameters
methodName of method that caused exception
rvReturn value of method that caused exception
Net.Pkcs11Interop.Common.Pkcs11Exception.Pkcs11Exception ( SerializationInfo  info,
StreamingContext  context 
)
protected

Initializes new instance of Pkcs11Exception class with serialized data

Parameters
infoSerializationInfo that holds the serialized object data about the exception being thrown
contextStreamingContext that contains contextual information about the source or destination

Member Function Documentation

override void Net.Pkcs11Interop.Common.Pkcs11Exception.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)

Populates a SerializationInfo with the data needed to serialize the target object

Parameters
infoSerializationInfo to populate with data
contextThe destination for this serialization

Property Documentation

string Net.Pkcs11Interop.Common.Pkcs11Exception.Method
get

Name of method that caused exception

CKR Net.Pkcs11Interop.Common.Pkcs11Exception.RV
get

Return value of method that caused exception


The documentation for this class was generated from the following file: