Version

DataParameterSurrogate Constructor(String,DbType,ParameterDirection)

Creates a surrogate for an IDbDataParameter that can be instantiated in a data provider-independent manner.
Syntax
'Declaration
 
Public Function New( _
   ByVal parameterName As String, _
   ByVal parameterType As DbType, _
   ByVal parameterDir As ParameterDirection _
)
public DataParameterSurrogate( 
   string parameterName,
   DbType parameterType,
   ParameterDirection parameterDir
)

Parameters

parameterName
Parameter name.
parameterType
Parameter's database type (provider independent).
parameterDir
Parameter's direction.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThrown when the parameterName specified is null or an empty string. While permitted by IDbDataParameter, these values would be disallowed by many data providers. Therefore, a non-null, non-empty parameterName must be furnished.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also