SqlTraceFailToInstantiateTypeException Constructors

Definition

Initiates a new instance of the SqlTraceFailToInstantiateTypeException class.

Overloads

SqlTraceFailToInstantiateTypeException()

Initiates a new instance of the SqlTraceFailToInstantiateTypeException class.

SqlTraceFailToInstantiateTypeException(String)

Initiates a new instance of the SqlTraceFailToInstantiateTypeException class with the specified message.

SqlTraceFailToInstantiateTypeException(SerializationInfo, StreamingContext)

Initializes a new instance of the SqlTraceFailToInstantiateTypeException class with the specified serialization information and the specified streaming context.

SqlTraceFailToInstantiateTypeException(String, Exception)

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

SqlTraceFailToInstantiateTypeException()

Initiates a new instance of the SqlTraceFailToInstantiateTypeException class.

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

Examples

How to: Catch an Exception in Visual Basic .NET

Applies to

SqlTraceFailToInstantiateTypeException(String)

Initiates a new instance of the SqlTraceFailToInstantiateTypeException class with the specified message.

public:
 SqlTraceFailToInstantiateTypeException(System::String ^ typeName);
public SqlTraceFailToInstantiateTypeException (string typeName);
new Microsoft.SqlServer.Management.Trace.SqlTraceFailToInstantiateTypeException : string -> Microsoft.SqlServer.Management.Trace.SqlTraceFailToInstantiateTypeException
Public Sub New (typeName As String)

Parameters

typeName
String

A String value that specifies the message associated with the SQL Trace Fail to Instantiate Type exception.

Examples

How to: Catch an Exception in Visual Basic .NET

Applies to

SqlTraceFailToInstantiateTypeException(SerializationInfo, StreamingContext)

Initializes a new instance of the SqlTraceFailToInstantiateTypeException class with the specified serialization information and the specified streaming context.

protected:
 SqlTraceFailToInstantiateTypeException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SqlTraceFailToInstantiateTypeException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.Management.Trace.SqlTraceFailToInstantiateTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.Management.Trace.SqlTraceFailToInstantiateTypeException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

A SerializationInfo object value that specifies the serialization information for the SQL Trace Fail to Instantiate Type exception.

context
StreamingContext

A StreamingContext object value that specifies the streaming context for the SQL Trace Fail to Instantiate Type exception.

Examples

Handling SMO Exceptions

Applies to

SqlTraceFailToInstantiateTypeException(String, Exception)

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

public:
 SqlTraceFailToInstantiateTypeException(System::String ^ typeName, Exception ^ innerException);
public SqlTraceFailToInstantiateTypeException (string typeName, Exception innerException);
new Microsoft.SqlServer.Management.Trace.SqlTraceFailToInstantiateTypeException : string * Exception -> Microsoft.SqlServer.Management.Trace.SqlTraceFailToInstantiateTypeException
Public Sub New (typeName As String, innerException As Exception)

Parameters

typeName
String

A String value that specifies the message associated with the general SQL Trace Fail to Instantiate Type exception.

innerException
Exception

An Exception object value that specifies the inner exception for the SQL Trace Fail to Instantiate Type exception.

Examples

Handling SMO Exceptions

Applies to