Edytuj

Udostępnij za pośrednictwem


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
Source:
ProviderException.cs
Source:
ProviderException.cs
Source:
ProviderException.cs

Creates a new instance of the ProviderException class.

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

Applies to

ProviderException(String)

Source:
ProviderException.cs
Source:
ProviderException.cs
Source:
ProviderException.cs
Source:
ProviderException.cs
Source:
ProviderException.cs

Creates a new instance of the ProviderException class.

public:
 ProviderException(System::String ^ message);
public ProviderException (string message);
new System.Configuration.Provider.ProviderException : string -> System.Configuration.Provider.ProviderException
Public Sub New (message As String)

Parameters

message
String

A message describing why this ProviderException was thrown.

Applies to

ProviderException(SerializationInfo, StreamingContext)

Source:
ProviderException.cs
Source:
ProviderException.cs
Source:
ProviderException.cs
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);
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);
new System.Configuration.Provider.ProviderException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Configuration.Provider.ProviderException
[<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}")>]
new System.Configuration.Provider.ProviderException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Configuration.Provider.ProviderException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The object that holds the information to deserialize.

context
StreamingContext

Contextual information about the source or destination.

Attributes

Applies to

ProviderException(String, Exception)

Source:
ProviderException.cs
Source:
ProviderException.cs
Source:
ProviderException.cs
Source:
ProviderException.cs
Source:
ProviderException.cs

Creates a new instance of the ProviderException class.

public:
 ProviderException(System::String ^ message, Exception ^ innerException);
public ProviderException (string message, Exception innerException);
new System.Configuration.Provider.ProviderException : string * Exception -> System.Configuration.Provider.ProviderException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

A message describing why this ProviderException was thrown.

innerException
Exception

The exception that caused this ProviderException to be thrown.

Applies to