Freigeben über


Verify.NotDisposed Method

Definition

Overloads

NotDisposed(IDisposableObservable, String)

Throws an ObjectDisposedException if an object is disposed.

NotDisposed(Boolean, String)

Throws an ObjectDisposedException if a condition is false.

NotDisposed(Boolean, Object, String)

Throws an ObjectDisposedException if a condition is false.

NotDisposed(IDisposableObservable, String)

Throws an ObjectDisposedException if an object is disposed.

[System.Diagnostics.DebuggerStepThrough]
public static void NotDisposed (Microsoft.IDisposableObservable disposedValue, string? message = default);
[<System.Diagnostics.DebuggerStepThrough>]
static member NotDisposed : Microsoft.IDisposableObservable * string -> unit
Public Shared Sub NotDisposed (disposedValue As IDisposableObservable, Optional message As String = Nothing)

Parameters

disposedValue
IDisposableObservable
message
String
Attributes

Applies to

NotDisposed(Boolean, String)

Throws an ObjectDisposedException if a condition is false.

public:
 static void NotDisposed(bool condition, System::String ^ message);
[System.Diagnostics.DebuggerStepThrough]
public static void NotDisposed (bool condition, string? message);
[<System.Diagnostics.DebuggerStepThrough>]
static member NotDisposed : bool * string -> unit
Public Shared Sub NotDisposed (condition As Boolean, message As String)

Parameters

condition
Boolean
message
String
Attributes

Applies to

NotDisposed(Boolean, Object, String)

Throws an ObjectDisposedException if a condition is false.

[System.Diagnostics.DebuggerStepThrough]
public static void NotDisposed (bool condition, object? disposedValue, string? message = default);
[<System.Diagnostics.DebuggerStepThrough>]
static member NotDisposed : bool * obj * string -> unit
Public Shared Sub NotDisposed (condition As Boolean, disposedValue As Object, Optional message As String = Nothing)

Parameters

condition
Boolean
disposedValue
Object
message
String
Attributes

Applies to