AdoDotNetConnectionSupport.CreateParameterFrom Method
Creates a new data parameter with interface IVsDataProvider, using a copy of the specified data parameter.
Namespace: Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Protected Overridable Function CreateParameterFrom ( _
parameter As DbParameter _
) As IVsDataParameter
protected virtual IVsDataParameter CreateParameterFrom(
DbParameter parameter
)
protected:
virtual IVsDataParameter^ CreateParameterFrom(
DbParameter^ parameter
)
abstract CreateParameterFrom :
parameter:DbParameter -> IVsDataParameter
override CreateParameterFrom :
parameter:DbParameter -> IVsDataParameter
protected function CreateParameterFrom(
parameter : DbParameter
) : IVsDataParameter
Parameters
- parameter
Type: System.Data.Common.DbParameter
A DbParameter data parameter from which to create the new parameter.
Return Value
Type: Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter
An IVsDataProvider object instance.
.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.