ObjectDataSourceView.DataObjectTypeName 属性

定义

获取或设置 ObjectDataSource 控件用于数据操作中的参数的类的名称。Gets or sets the name of a class that the ObjectDataSource control uses for a parameter in a data operation. ObjectDataSource 控件使用指定的类,而不是位于各种参数集合中的 Parameter 对象。The ObjectDataSource control uses the specified class instead of the Parameter objects that are in the various parameters collections.

public:
 property System::String ^ DataObjectTypeName { System::String ^ get(); void set(System::String ^ value); };
public string DataObjectTypeName { get; set; }
member this.DataObjectTypeName : string with get, set
Public Property DataObjectTypeName As String

属性值

部分或完全限定类名,标识 ObjectDataSource 可以用作 Insert()Update()Delete() 操作参数的对象类型。A partially or fully qualified class name that identifies the type of the object that the ObjectDataSource can use as a parameter for a Insert(), Update(), or Delete() operation. 默认值为空字符串("")。The default is an empty string ("").

注解

您可以创建一个聚合多个项的对象Select, 而Insert不是Delete指定传递到、 Update、和方法的多个参数。Instead of specifying several parameters that are passed to the Select, Update, Insert, and Delete methods, you can create one object that aggregates several items. 此对象将传递给方法, 而不是多个参数。This one object is passed to the methods, instead of several parameters. 有关详细信息,请参阅 ObjectDataSource.DataObjectTypeNameFor more information see ObjectDataSource.DataObjectTypeName.

适用于

另请参阅