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

Exception indicating that unmanaged function has returned error More...

Inherits Exception.

Public Member Functions

 UnmanagedException (string message)
 Initializes new instance of UnmanagedException class More...
 
 UnmanagedException (string message, int errorCode)
 Initializes new instance of UnmanagedException 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

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

Properties

int ErrorCode [get]
 Error code returned by the last unmanaged function. Errors are explained at https://docs.microsoft.com/en-us/windows/desktop/Debug/system-error-codes More...
 

Detailed Description

Exception indicating that unmanaged function has returned error

Constructor & Destructor Documentation

◆ UnmanagedException() [1/3]

Net.Pkcs11Interop.Common.UnmanagedException.UnmanagedException ( string  message)

Initializes new instance of UnmanagedException class

Parameters
messageMessage that describes the error

◆ UnmanagedException() [2/3]

Net.Pkcs11Interop.Common.UnmanagedException.UnmanagedException ( string  message,
int  errorCode 
)

Initializes new instance of UnmanagedException class

Parameters
messageMessage that describes the error
errorCodeError code returned by the last unmanaged function

◆ UnmanagedException() [3/3]

Net.Pkcs11Interop.Common.UnmanagedException.UnmanagedException ( SerializationInfo  info,
StreamingContext  context 
)
protected

Initializes new instance of UnmanagedException 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

◆ GetObjectData()

override void Net.Pkcs11Interop.Common.UnmanagedException.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

◆ ErrorCode

int Net.Pkcs11Interop.Common.UnmanagedException.ErrorCode
get

Error code returned by the last unmanaged function. Errors are explained at https://docs.microsoft.com/en-us/windows/desktop/Debug/system-error-codes


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