共用方式為


IParameterFactory.CreateScalarParameter Method

Definition

Overloads

CreateScalarParameter(String, IScalarDataType)
CreateScalarParameter(String, IScalarDataType, Boolean, String)

CreateScalarParameter(String, IScalarDataType)

public Microsoft.SqlServer.Management.SqlParser.Metadata.IScalarParameter CreateScalarParameter (string name, Microsoft.SqlServer.Management.SqlParser.Metadata.IScalarDataType dataType);
abstract member CreateScalarParameter : string * Microsoft.SqlServer.Management.SqlParser.Metadata.IScalarDataType -> Microsoft.SqlServer.Management.SqlParser.Metadata.IScalarParameter
Public Function CreateScalarParameter (name As String, dataType As IScalarDataType) As IScalarParameter

Parameters

name
String
dataType
IScalarDataType

Returns

Applies to

CreateScalarParameter(String, IScalarDataType, Boolean, String)

public Microsoft.SqlServer.Management.SqlParser.Metadata.IScalarParameter CreateScalarParameter (string name, Microsoft.SqlServer.Management.SqlParser.Metadata.IScalarDataType dataType, bool isOutput, string defaultValue);
abstract member CreateScalarParameter : string * Microsoft.SqlServer.Management.SqlParser.Metadata.IScalarDataType * bool * string -> Microsoft.SqlServer.Management.SqlParser.Metadata.IScalarParameter
Public Function CreateScalarParameter (name As String, dataType As IScalarDataType, isOutput As Boolean, defaultValue As String) As IScalarParameter

Parameters

name
String
dataType
IScalarDataType
isOutput
Boolean
defaultValue
String

Returns

Applies to