Konstruktor SqlTraceException (Type, String)
Inicjuje nowe wystąpienie SQLTraceException klasy z podany typ źródło i określonych wiadomości.
Przestrzeń nazw: Microsoft.SqlServer.Management.Trace
Zestaw: Microsoft.SqlServer.ConnectionInfoExtended (w Microsoft.SqlServer.ConnectionInfoExtended.dll)
Składnia
'Deklaracja
Public Sub New ( _
messageSource As Type, _
messageID As String _
)
'Użycie
Dim messageSource As Type
Dim messageID As String
Dim instance As New SqlTraceException(messageSource, _
messageID)
public SqlTraceException(
Type messageSource,
string messageID
)
public:
SqlTraceException(
Type^ messageSource,
String^ messageID
)
new :
messageSource:Type *
messageID:string -> SqlTraceException
public function SqlTraceException(
messageSource : Type,
messageID : String
)
Parametry
- messageSource
Typ: System.Type
A Type wartość obiektu systemu, który określa źródło wyjątku.
- messageID
Typ: System.String
A String wartość określająca wiadomości związane z ogólnym wyjątek śledzenia SQL.
Zobacz także