DataDefaultObject.Create<T>(IServiceProvider) 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.
Creates a data provider.
public:
generic <typename T>
where T : class static T Create(IServiceProvider ^ serviceProvider);
public static T Create<T> (IServiceProvider serviceProvider) where T : class;
static member Create : IServiceProvider -> 'T (requires 'T : null)
Public Shared Function Create(Of T As Class) (serviceProvider As IServiceProvider) As T
Type Parameters
- T
The type of the parameter.
Parameters
- serviceProvider
- IServiceProvider
The service provider.
Returns
T
The data provider of the specified generic type.
Exceptions
The serviceProvider
parameter is null.