ProviderException Constructors

Definition

Creates a new instance of the ProviderException class.

Overloads

ProviderException()

Creates a new instance of the ProviderException class.

ProviderException(String)

Creates a new instance of the ProviderException class.

ProviderException(SerializationInfo, StreamingContext)
Obsolete.

Creates a new instance of the ProviderException class.

ProviderException(String, Exception)

Creates a new instance of the ProviderException class.

ProviderException()

Source:
ProviderException.cs
Source:
ProviderException.cs

Creates a new instance of the ProviderException class.

public ProviderException ();

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

ProviderException(String)

Source:
ProviderException.cs
Source:
ProviderException.cs

Creates a new instance of the ProviderException class.

public ProviderException (string message);

Parameters

message
String

A message describing why this ProviderException was thrown.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

ProviderException(SerializationInfo, StreamingContext)

Source:
ProviderException.cs
Source:
ProviderException.cs

Caution

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Creates a new instance of the ProviderException class.

protected ProviderException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected ProviderException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

The object that holds the information to deserialize.

context
StreamingContext

Contextual information about the source or destination.

Attributes

Applies to

.NET 9 (package-provided) and other versions
Product Versions (Obsolete)
.NET 6 (package-provided), 7 (package-provided) (8 (package-provided), 9 (package-provided))
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7 (8, 9)

ProviderException(String, Exception)

Source:
ProviderException.cs
Source:
ProviderException.cs

Creates a new instance of the ProviderException class.

public ProviderException (string message, Exception innerException);

Parameters

message
String

A message describing why this ProviderException was thrown.

innerException
Exception

The exception that caused this ProviderException to be thrown.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9