Provides a thread-safe context associated with a specific IDataProvider.
| C# | Visual Basic | Visual C++ |
public class DataProviderContext : IDisposable
Public Class DataProviderContext _ Implements IDisposable
public ref class DataProviderContext : IDisposable
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| DataProviderContext(IDataProvider) |
Initializes a new instance of the DataProviderContext class.
| |
| Current |
Gets the data provider for the current thread.
| |
| Dispose()()() |
Disposes the context by popping the Current data provider
from the stack.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()() | Gets the type of the current instance. (Inherited from Object.) | |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Pop()()() |
Removes the Current data provider instance from the stack.
| |
| Providers |
Gets the data provider stack for the current thread.
| |
| Push(IDataProvider) |
Pushes the specified provider on the data provider stack making it
the Current data provider.
| |
| ToString()()() | Returns a string that represents the current object. (Inherited from Object.) |
| Object | |
| DataProviderContext | |
