Freigeben über


ObjectNeedsStateException-Konstruktor (String, Exception)

Initialisiert eine neue Instanz der ObjectNeedsStateException-Klasse, die eine angegebene Fehlermeldung und einen Verweis auf die innere Ausnahme enthält, die diese Ausnahme verursacht hat.

Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in microsoft.synchronization.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
'Usage
Dim message As String
Dim innerException As Exception

Dim instance As New ObjectNeedsStateException(message, innerException)
public ObjectNeedsStateException (
    string message,
    Exception innerException
)
public:
ObjectNeedsStateException (
    String^ message, 
    Exception^ innerException
)
public ObjectNeedsStateException (
    String message, 
    Exception innerException
)
public function ObjectNeedsStateException (
    message : String, 
    innerException : Exception
)

Parameter

  • message
    Die Fehlermeldung, die die Ursache für die Ausnahme angibt.
  • innerException
    Die Ausnahme, die die aktuelle Ausnahme verursacht hat, oder NULL, wenn keine innere Ausnahme angegeben wird.

Siehe auch

Verweis

ObjectNeedsStateException-Klasse
ObjectNeedsStateException-Member
Microsoft.Synchronization-Namespace