IParameterFactory.CreateTableParameter Method
Creates an ITableParameter object that has the specified name and data type.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Function CreateTableParameter ( _
name As String, _
dataType As ITableDataType _
) As ITableParameter
'Usage
Dim instance As IParameterFactory
Dim name As String
Dim dataType As ITableDataType
Dim returnValue As ITableParameter
returnValue = instance.CreateTableParameter(name, _
dataType)
ITableParameter CreateTableParameter(
string name,
ITableDataType dataType
)
ITableParameter^ CreateTableParameter(
String^ name,
ITableDataType^ dataType
)
abstract CreateTableParameter :
name:string *
dataType:ITableDataType -> ITableParameter
function CreateTableParameter(
name : String,
dataType : ITableDataType
) : ITableParameter
Parameters
- name
Type: System.String
The name of the parameter to create.
- dataType
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.ITableDataType
The data type of the parameter to create.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.ITableParameter
An ITableParameter object that has the specified name and data type.