This documentation is archived and is not being maintained.

CryptographicException Constructor

.NET Framework 1.1

Initializes a new instance of the CryptographicException class.

Overload List

Initializes a new instance of the CryptographicException class with default properties.

[Visual Basic] Public Sub New()
[C#] public CryptographicException();
[C++] public: CryptographicException();
[JScript] public function CryptographicException();

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

[Visual Basic] Public Sub New(Integer)
[C#] public CryptographicException(int);
[C++] public: CryptographicException(int);
[JScript] public function CryptographicException(int);

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

[Visual Basic] Public Sub New(String)
[C#] public CryptographicException(string);
[C++] public: CryptographicException(String*);
[JScript] public function CryptographicException(String);

Initializes a new instance of the CryptographicException class with serialized data.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected CryptographicException(SerializationInfo, StreamingContext);
[C++] protected: CryptographicException(SerializationInfo*, StreamingContext);
[JScript] protected function CryptographicException(SerializationInfo, StreamingContext);

Initializes a new instance of the CryptographicException class with a specified error message and a reference to the inner exception that is the cause of this exception.

[Visual Basic] Public Sub New(String, Exception)
[C#] public CryptographicException(string, Exception);
[C++] public: CryptographicException(String*, Exception*);
[JScript] public function CryptographicException(String, Exception);

Initializes a new instance of the CryptographicException class with a specified error message in the specified format.

[Visual Basic] Public Sub New(String, String)
[C#] public CryptographicException(string, string);
[C++] public: CryptographicException(String*, String*);
[JScript] public function CryptographicException(String, String);

See Also

CryptographicException Class | CryptographicException Members | System.Security.Cryptography Namespace

Show: