PexDisposableContext.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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