Uredi

Deli z drugimi prek


ObjectDataSource Constructors

Definition

Initializes a new instance of the ObjectDataSource class.

Overloads

ObjectDataSource()

Initializes a new instance of the ObjectDataSource class.

ObjectDataSource(String, String)

Initializes a new instance of the ObjectDataSource class with the specified type name and data retrieval method name.

ObjectDataSource()

Initializes a new instance of the ObjectDataSource class.

public:
 ObjectDataSource();
public ObjectDataSource ();
Public Sub New ()

See also

Applies to

ObjectDataSource(String, String)

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)

Parameters

typeName
String

The name of the class that the ObjectDataSource works with.

selectMethod
String

The name of the method or function that the ObjectDataSource invokes to retrieve data.

Remarks

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. 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.

See also

Applies to