CryptographicException Constructor (Int32)

CryptographicException Constructor (Int32)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the CryptographicException class with the specified HRESULT error code.

Namespace:  System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Sub New ( _
	hr As Integer _
)

Parameters

hr
Type: System.Int32
The HRESULT error code.

The CryptographicException constructor accepts a system HRESULT error code and sets the Message property to a localized message that corresponds to the HRESULT.

The following table shows the initial property values for an instance of CryptographicException.

Property

Value

InnerException

Nothing.

Message

The localized error message string.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft