Creates an instance of the specified type for the given provider and data connection.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Public Shared Function Create ( _
providerObj As T, _
connection As IVsDataConnection _
) As T
'使用
Dim providerObj As T
Dim connection As IVsDataConnection
Dim returnValue As T
returnValue = DataConnectionClientService.Create(providerObj, _
connection)
public static T Create(
T providerObj,
IVsDataConnection connection
)
public:
static T Create(
T providerObj,
IVsDataConnection^ connection
)
public static function Create(
providerObj : T,
connection : IVsDataConnection
) : T
Parameters
providerObj
Type: TThe data provider associated with the client object.
connection
Type: Microsoft.VisualStudio.Data.Services.IVsDataConnectionThe data connection associated with the client object.
Return Value
Type: T
An instance of the client object of the specified type.
Permissions
- 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.
See Also
Reference
DataConnectionClientService<T> Class