ObjectDisposedException.ThrowIf Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| ThrowIf(Boolean, Object) |
Löst ein ObjectDisposedException , wenn der angegebene Wert ist |
| ThrowIf(Boolean, Type) |
Löst ein ObjectDisposedException , wenn der angegebene Wert ist |
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.