Costruttore TargetException (String, Exception)

Questo costruttore inizializza una nuova istanza della classe TargetException .

Namespace: Microsoft.Windows.Kits.Hardware.ObjectModel

Assemblea: Microsoft.Windows.Kits.Hardware.ObjectModel (in Microsoft.Windows.Kits.Hardware.ObjectModel)

Utilizzo

Visual Basic

Messaggio dim come stringa

Dim tranne Come eccezione

Istanza dim Come nuova destinazioneException (messaggio, ad eccezione)

Sintassi

Visual Basic

Public Sub New ( _

          message As String, _

          except As Exception _

)

C#

public TargetException (

          string message,

          Exception except

)

Parametri

message

Stringa che rappresenta il messaggio per l'eccezione.

Tranne

Oggetto Exception .