Error Event
Fires when an errors happens during a key storage operation.
Syntax
public event OnErrorHandler OnError; public delegate void OnErrorHandler(object sender, CryptokeystorageErrorEventArgs e); public class CryptokeystorageErrorEventArgs : EventArgs { public int ErrorCode { get; } public string Description { get; } }
Public Event OnError As OnErrorHandler Public Delegate Sub OnErrorHandler(sender As Object, e As CryptokeystorageErrorEventArgs) Public Class CryptokeystorageErrorEventArgs Inherits EventArgs Public ReadOnly Property ErrorCode As Integer Public ReadOnly Property Description As String End Class
Remarks
This event reports an exceptional situation during a key storage operation.
ErrorCode contains an error code and Description contains a textual description of the error.