Class constructor. Initializes a new, parameterized instance of the DataProviderException class with a specified provider name and error message.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Public Sub New ( _
providerName As String, _
message As String _
)
'使用
Dim providerName As String
Dim message As String
Dim instance As New DataProviderException(providerName, _
message)
public DataProviderException(
string providerName,
string message
)
public:
DataProviderException(
String^ providerName,
String^ message
)
public function DataProviderException(
providerName : String,
message : String
)
Parameters
providerName
Type: System.StringThe name of the provider that caused the error.
message
Type: System.StringThe error message that explains the reason for the exception.
Remarks
The generic error message propagated with the exception when this constructor is called is "An unexpected error occurred in the <DDEX provider name>. Please contact the provider vendor to resolve this problem."
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.