SqlDataSourceDesigner.InferParameterNames 方法

定义

使用指定的连接、命令文本和命令类型返回参数数组。

protected public:
 virtual cli::array <System::Web::UI::WebControls::Parameter ^> ^ InferParameterNames(System::ComponentModel::Design::Data::DesignerDataConnection ^ connection, System::String ^ commandText, System::Web::UI::WebControls::SqlDataSourceCommandType commandType);
protected internal virtual System.Web.UI.WebControls.Parameter[] InferParameterNames (System.ComponentModel.Design.Data.DesignerDataConnection connection, string commandText, System.Web.UI.WebControls.SqlDataSourceCommandType commandType);
abstract member InferParameterNames : System.ComponentModel.Design.Data.DesignerDataConnection * string * System.Web.UI.WebControls.SqlDataSourceCommandType -> System.Web.UI.WebControls.Parameter[]
override this.InferParameterNames : System.ComponentModel.Design.Data.DesignerDataConnection * string * System.Web.UI.WebControls.SqlDataSourceCommandType -> System.Web.UI.WebControls.Parameter[]
Protected Friend Overridable Function InferParameterNames (connection As DesignerDataConnection, commandText As String, commandType As SqlDataSourceCommandType) As Parameter()

参数

commandText
String

命令的文本。

commandType
SqlDataSourceCommandType

指示命令类型的 SqlDataSourceCommandType

返回

一个 Parameter 对象数组。

适用于

另请参阅