Udostępnij za pośrednictwem


Konstruktor ConnectionCannotBeChangedException (String, Exception)

Inicjuje nowe wystąpienie ConnectionCannotBeChangedException klasy wiadomości określony tekst i wewnętrzny wyjątek.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Common
Zestaw:  Microsoft.SqlServer.ConnectionInfo (w Microsoft.SqlServer.ConnectionInfo.dll)

Składnia

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

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

Parametry

  • message
    Typ: System.String
    A String wartość, która określa tekst komunikatu, który opis zdarzenie, który spowodował wyjątek.
  • innerException
    Typ: System.Exception
    Exception Obiekt zawierający wewnętrzny wyjątek.Jest to używany w sytuacjach innym wyjątkiem należy podnieść powoduje wyjątek.