Delen via


CertificateNotFoundException Constructors

Definition

Overloads

CertificateNotFoundException()

Initializes a new instance of the CertificateNotFoundException class with the default message.

CertificateNotFoundException(String)

Initializes a new instance of the CertificateNotFoundException class with the specified message.

CertificateNotFoundException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the CertificateNotFoundException class with the specified serialization information, and context.

CertificateNotFoundException(String, Exception)

Initializes a new instance of the CertificateNotFoundException class with the specified message, and inner exception.

CertificateNotFoundException()

Initializes a new instance of the CertificateNotFoundException class with the default message.

public:
 CertificateNotFoundException();
public:
 CertificateNotFoundException();
 CertificateNotFoundException();
public CertificateNotFoundException ();
Public Sub New ()

Applies to

CertificateNotFoundException(String)

Initializes a new instance of the CertificateNotFoundException class with the specified message.

public:
 CertificateNotFoundException(System::String ^ message);
public:
 CertificateNotFoundException(Platform::String ^ message);
 CertificateNotFoundException(std::wstring const & message);
public CertificateNotFoundException (string message);
new Microsoft.PowerShell.Commands.CertificateNotFoundException : string -> Microsoft.PowerShell.Commands.CertificateNotFoundException
Public Sub New (message As String)

Parameters

message
String

The message to be included in the exception.

Applies to

CertificateNotFoundException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of the CertificateNotFoundException class with the specified serialization information, and context.

protected:
 CertificateNotFoundException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected CertificateNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")]
protected CertificateNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.PowerShell.Commands.CertificateNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.PowerShell.Commands.CertificateNotFoundException
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")>]
new Microsoft.PowerShell.Commands.CertificateNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.PowerShell.Commands.CertificateNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The serialization information.

context
StreamingContext

The streaming context.

Attributes

Applies to

CertificateNotFoundException(String, Exception)

Initializes a new instance of the CertificateNotFoundException class with the specified message, and inner exception.

public:
 CertificateNotFoundException(System::String ^ message, Exception ^ innerException);
public CertificateNotFoundException (string message, Exception innerException);
new Microsoft.PowerShell.Commands.CertificateNotFoundException : string * Exception -> Microsoft.PowerShell.Commands.CertificateNotFoundException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message to be included in the exception.

innerException
Exception

The inner exception to be included in the exception.

Applies to