Freigeben über


DataDefaultObject.Create<T>(IServiceProvider) Method

Definition

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.

Applies to