ObjectDisposedException.ThrowIf Methode

Definition

Überlädt

ThrowIf(Boolean, Object)

Löst ein aus ObjectDisposedException , wenn der angegebene condition ist true.

ThrowIf(Boolean, Type)

Löst ein aus ObjectDisposedException , wenn der angegebene condition ist true.

ThrowIf(Boolean, Object)

Source:
ObjectDisposedException.cs
Source:
ObjectDisposedException.cs
Source:
ObjectDisposedException.cs

Löst ein aus ObjectDisposedException , wenn der angegebene condition ist true.

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 des Typs in jedem resultierenden ObjectDisposedExceptionenthalten sein soll.

Ausnahmen

Der Jointyp (condition) lautet true.

Gilt für:

ThrowIf(Boolean, Type)

Source:
ObjectDisposedException.cs
Source:
ObjectDisposedException.cs
Source:
ObjectDisposedException.cs

Löst ein aus ObjectDisposedException , wenn der angegebene condition ist true.

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 jedem resultierenden ObjectDisposedExceptionenthalten sein soll.

Ausnahmen

Der Jointyp (condition) lautet true.

Gilt für: