ObjectDisposedException.ThrowIf Methode

Definition

Überlädt

Name Beschreibung
ThrowIf(Boolean, Object)

Löst ein ObjectDisposedException , wenn der angegebene Wert ist conditiontrue.

ThrowIf(Boolean, Type)

Löst ein ObjectDisposedException , wenn der angegebene Wert ist conditiontrue.

ThrowIf(Boolean, Object)

Quelle:
ObjectDisposedException.cs
Quelle:
ObjectDisposedException.cs
Quelle:
ObjectDisposedException.cs
Quelle:
ObjectDisposedException.cs
Quelle:
ObjectDisposedException.cs

Löst ein ObjectDisposedException , wenn der angegebene Wert ist conditiontrue.

public:
 static void ThrowIf(bool condition, System::Object ^ instance);
public static void ThrowIf(bool condition, object instance);
static member ThrowIf : bool * obj -> unit
Public Shared Sub ThrowIf (condition As Boolean, instance As Object)

Parameter

condition
Boolean

Die auszuwertende Bedingung.

instance
Object

Das Objekt, dessen vollständiger Name in jedem resultierenden ObjectDisposedExceptionObjekt enthalten sein soll.

Ausnahmen

condition ist true.

Gilt für:

ThrowIf(Boolean, Type)

Quelle:
ObjectDisposedException.cs
Quelle:
ObjectDisposedException.cs
Quelle:
ObjectDisposedException.cs
Quelle:
ObjectDisposedException.cs
Quelle:
ObjectDisposedException.cs

Löst ein ObjectDisposedException , wenn der angegebene Wert ist conditiontrue.

public:
 static void ThrowIf(bool condition, Type ^ type);
public static void ThrowIf(bool condition, Type type);
static member ThrowIf : bool * Type -> unit
Public Shared Sub ThrowIf (condition As Boolean, type As Type)

Parameter

condition
Boolean

Die auszuwertende Bedingung.

type
Type

Der Typ, dessen vollständiger Name in alle resultierenden ObjectDisposedExceptionEnthalten sein soll.

Ausnahmen

condition ist true.

Gilt für: