ObjectDataSource ObjectDataSource ObjectDataSource ObjectDataSource Constructors

定义

重载

ObjectDataSource() ObjectDataSource() ObjectDataSource()

初始化 ObjectDataSource 类的新实例。Initializes a new instance of the ObjectDataSource class.

ObjectDataSource(String, String) ObjectDataSource(String, String) ObjectDataSource(String, String) ObjectDataSource(String, String)

使用指定的类型名和数据检索方法名初始化 ObjectDataSource 类的新实例。Initializes a new instance of the ObjectDataSource class with the specified type name and data retrieval method name.

ObjectDataSource() ObjectDataSource() ObjectDataSource()

初始化 ObjectDataSource 类的新实例。Initializes a new instance of the ObjectDataSource class.

public:
 ObjectDataSource();
public ObjectDataSource ();
Public Sub New ()
另请参阅

ObjectDataSource(String, String) ObjectDataSource(String, String) ObjectDataSource(String, String) ObjectDataSource(String, String)

使用指定的类型名和数据检索方法名初始化 ObjectDataSource 类的新实例。Initializes a new instance of the ObjectDataSource class with the specified type name and data retrieval method name.

public:
 ObjectDataSource(System::String ^ typeName, System::String ^ selectMethod);
public ObjectDataSource (string typeName, string selectMethod);
new System.Web.UI.WebControls.ObjectDataSource : string * string -> System.Web.UI.WebControls.ObjectDataSource
Public Sub New (typeName As String, selectMethod As String)

参数

typeName
String String String String

ObjectDataSource 使用的类的名称。The name of the class that the ObjectDataSource works with.

selectMethod
String String String String

ObjectDataSource 为检索数据而调用的方法或函数的名称。The name of the method or function that the ObjectDataSource invokes to retrieve data.

注解

typeName参数的值可以是位于 Bin 或 App_Code 目录中的代码的部分限定类型, 也可以是在全局程序集缓存中注册的代码的完全限定类型名称。The value of the typeName parameter can be a partially qualified type for code that is located in the Bin or App_Code directory or a fully qualified type name for code that is registered in the global assembly cache. 如果使用全局程序集缓存, 则必须将相应的引用添加到 machine.config assemblies或 web.config 配置文件的节中。If you use the global assembly cache, you must add the appropriate reference to the assemblies section of the Machine.config or Web.config configuration file.

另请参阅

适用于