Udostępnij za pośrednictwem


Konstruktor SqlTraceFailToInstantiateTypeException (String, Exception)

Inicjuje nowe wystąpienie SQLTraceFailToInstantiateTypeException klasy z określonym komunikatem i wewnętrzny wyjątek.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Trace
Zestaw:  Microsoft.SqlServer.ConnectionInfoExtended (w Microsoft.SqlServer.ConnectionInfoExtended.dll)

Składnia

'Deklaracja
Public Sub New ( _
    typeName As String, _
    innerException As Exception _
)
'Użycie
Dim typeName As String
Dim innerException As Exception

Dim instance As New SqlTraceFailToInstantiateTypeException(typeName, _
    innerException)
public SqlTraceFailToInstantiateTypeException(
    string typeName,
    Exception innerException
)
public:
SqlTraceFailToInstantiateTypeException(
    String^ typeName, 
    Exception^ innerException
)
new : 
        typeName:string * 
        innerException:Exception -> SqlTraceFailToInstantiateTypeException
public function SqlTraceFailToInstantiateTypeException(
    typeName : String, 
    innerException : Exception
)

Parametry

  • typeName
    Typ: System.String
    A String wartość określająca wiadomości związane z ogólne SQL śledzenia nie można utworzyć wystąpienia typu wyjątku.
  • innerException
    Typ: System.Exception
    Exception Wartość obiektu, który określa wewnętrznym wyjątku nie śledzenia SQL, można utworzyć wystąpienia typu wyjątku.