DataDefaultObject.Create<T> Method
Creates a data provider.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Shared Function Create(Of T As Class) ( _
serviceProvider As IServiceProvider _
) As T
public static T Create<T>(
IServiceProvider serviceProvider
)
where T : class
public:
generic<typename T>
where T : ref class
static T Create(
IServiceProvider^ serviceProvider
)
static member Create :
serviceProvider:IServiceProvider -> 'T when 'T : not struct
JScript does not support generic types or methods.
Type Parameters
- T
The type of the parameter.
Parameters
serviceProvider
Type: System.IServiceProviderThe service provider.
Return Value
Type: T
The data provider of the specified generic type.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The serviceProvider parameter is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.