次の方法で共有


PexDisposableContext.Add Method

Definition

Overloads

Add(IDisposable)

Adds the specified disposable (may be null).

Add(Object)

Adds the object to the context (may be null). If the object is a mole, attaches the mole and stores the context

Add(IDisposable)

Adds the specified disposable (may be null).

public:
 void Add(IDisposable ^ disposable);
public void Add (IDisposable disposable);
member this.Add : IDisposable -> unit
Public Sub Add (disposable As IDisposable)

Parameters

disposable
IDisposable

The disposable.

Applies to

Add(Object)

Adds the object to the context (may be null). If the object is a mole, attaches the mole and stores the context

public:
 void Add(System::Object ^ value);
public void Add (object value);
member this.Add : obj -> unit
Public Sub Add (value As Object)

Parameters

value
Object

Applies to