Export (0) Print
Expand All

ObjectDesignerDataSourceView Class

Provides the design-time view that is associated with the ObjectDataSourceDesigner class.

System.Object
  System.Web.UI.Design.DesignerDataSourceView
    System.Web.UI.Design.WebControls.ObjectDesignerDataSourceView

Namespace:  System.Web.UI.Design.WebControls
Assembly:  System.Design (in System.Design.dll)

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public class ObjectDesignerDataSourceView : DesignerDataSourceView

The ObjectDesignerDataSourceView type exposes the following members.

  NameDescription
Public methodObjectDesignerDataSourceViewInitializes a new instance of the ObjectDesignerDataSourceView class.
Top

  NameDescription
Public propertyCanDeleteGets a value that indicates whether the associated data source control as it is currently configured can perform a Delete operation. (Overrides DesignerDataSourceView.CanDelete.)
Public propertyCanInsertGets a value that indicates whether the associated data source control as it is currently configured can perform an Insert operation. (Overrides DesignerDataSourceView.CanInsert.)
Public propertyCanPageGets a value that indicates whether the associated data source control can perform server-based paging. (Overrides DesignerDataSourceView.CanPage.)
Public propertyCanRetrieveTotalRowCountGets a value that indicates whether the associated data source control can return the total number of rows that are returned by a query. (Overrides DesignerDataSourceView.CanRetrieveTotalRowCount.)
Public propertyCanSortGets a value that indicates whether the associated data source control can sort rows. (Overrides DesignerDataSourceView.CanSort.)
Public propertyCanUpdateGets a value that indicates whether the associated data source control as it is currently configured can perform an Update operation. (Overrides DesignerDataSourceView.CanUpdate.)
Public propertyDataSourceDesignerGets a reference to the designer that created this DesignerDataSourceView control. (Inherited from DesignerDataSourceView.)
Public propertyNameGets the name of the view as provided when this instance of the DesignerDataSourceView class was created. (Inherited from DesignerDataSourceView.)
Public propertySchemaGets a schema that describes the data source view that is represented by this view object. (Overrides DesignerDataSourceView.Schema.)
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetDesignTimeDataGenerates design-time data that matches the schema of the associated data source control. (Overrides DesignerDataSourceView.GetDesignTimeData(Int32, Boolean).)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The ObjectDataSource control represents a data source that calls methods of a business object in order to perform the Delete, Insert, Select, and Update database-type operations.

The ObjectDataSourceDesigner class provides design-time support for the ObjectDataSource control in a visual designer. An ObjectDesignerDataSourceView object provides members that indicate whether various database-type operations can be performed and that return schema and design-time data.

The CanInsert, CanUpdate, and CanDelete properties indicate whether the associated ObjectDataSource control can perform the corresponding database-type operations.

The CanSort property, which is always true, indicates that the associated control can sort rows. The CanPage and CanRetrieveTotalRowCount properties, which are always false, indicate that the associated control cannot perform server paging and cannot return the total number of rows in a query, respectively.

The Schema property gets a schema that describes the data source view that is represented by this view object. The GetDesignTimeData method generates design-time data that matches the schema of the associated control.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft