Share via


ProviderException 构造函数

定义

创建 ProviderException 类的新实例。

重载

ProviderException()

创建 ProviderException 类的新实例。

ProviderException(String)

创建 ProviderException 类的新实例。

ProviderException(SerializationInfo, StreamingContext)
已过时.

创建 ProviderException 类的新实例。

ProviderException(String, Exception)

创建 ProviderException 类的新实例。

ProviderException()

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

创建 ProviderException 类的新实例。

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

适用于

ProviderException(String)

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

创建 ProviderException 类的新实例。

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)

参数

message
String

描述引发该 ProviderException 的原因的消息。

适用于

ProviderException(SerializationInfo, StreamingContext)

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

注意

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

创建 ProviderException 类的新实例。

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)

参数

info
SerializationInfo

包含要反序列化的信息的对象。

context
StreamingContext

有关源或目标的上下文信息。

属性

适用于

ProviderException(String, Exception)

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

创建 ProviderException 类的新实例。

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)

参数

message
String

描述引发该 ProviderException 的原因的消息。

innerException
Exception

导致引发此 ProviderException 的异常。

适用于