ContextDataSourceView 類別

定義

支援 ContextDataSource 控制項,並提供資料繫結控制項的介面,以執行資料作業。Supports the ContextDataSource control and provides an interface for data-bound controls to perform data operations.

public ref class ContextDataSourceView abstract : System::Web::UI::WebControls::QueryableDataSourceView
public abstract class ContextDataSourceView : System.Web.UI.WebControls.QueryableDataSourceView
type ContextDataSourceView = class
    inherit QueryableDataSourceView
Public MustInherit Class ContextDataSourceView
Inherits QueryableDataSourceView
繼承
衍生

建構函式

ContextDataSourceView(DataSourceControl, String, HttpContext)

初始化 ContextDataSourceView 類別的新執行個體。Initializes a new instance of the ContextDataSourceView class.

欄位

EventContextCreated

表示在建立內容型別物件的執行個體之後發生了事件。Indicates that an event occurred after an instance of the context type object was created.

EventContextCreating

表示在建立內容型別物件的執行個體之前發生了事件。Indicates that an event occurs before an instance of the context type object is created.

EventContextDisposing

表示在處置內容型別物件的執行個體之前發生了事件。Indicates that an event occurs before an instance of the context type object is disposed.

屬性

AutoGenerateOrderByClause

取得或設定值,這個值表示與目前 QueryableDataSourceView 控制項相關聯的 QueryableDataSource 物件是否會建立動態 OrderBy 子句。Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control creates a dynamic an OrderBy clause.

(繼承來源 QueryableDataSourceView)
AutoGenerateWhereClause

取得或設定值,這個值表示與目前 QueryableDataSourceView 控制項相關聯的 QueryableDataSource 物件是否會建立動態 Where 子句。Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control creates a dynamic Where clause.

(繼承來源 QueryableDataSourceView)
AutoPage

取得或設定值,這個值表示與目前 QueryableDataSourceView 控制項相關聯的 QueryableDataSource 物件預設是否支援分頁。Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports paging by default.

(繼承來源 QueryableDataSourceView)
AutoSort

取得或設定值,這個值表示與目前 QueryableDataSourceView 控制項相關聯的 QueryableDataSource 物件預設是否支援排序。Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports sorting by default.

(繼承來源 QueryableDataSourceView)
CanDelete

取得值,這個值表示與目前 QueryableDataSourceView 控制項相關聯的 QueryableDataSource 物件是否支援刪除作業。Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports delete operations.

(繼承來源 QueryableDataSourceView)
CanInsert

取得值,這個值表示與目前 QueryableDataSourceView 控制項相關聯的 QueryableDataSource 物件是否支援插入作業。Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports insert operations.

(繼承來源 QueryableDataSourceView)
CanPage

取得值,這個值表示與目前 QueryableDataSourceView 控制項相關聯的 QueryableDataSource 物件是否支援分頁。Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports paging.

(繼承來源 QueryableDataSourceView)
CanRetrieveTotalRowCount

取得值,這個值表示與目前 QueryableDataSourceView 控制項相關聯的 QueryableDataSource 物件是否支援擷取資料列總數及擷取資料。Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports retrieving the total number of data rows, and retrieving the data.

(繼承來源 QueryableDataSourceView)
CanSort

取得值,表示與目前 QueryableDataSource 控制項相關聯的 QueryableDataSourceView 物件是否支援對擷取資料的排序檢視。Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports a sorted view of the retrieved data.

(繼承來源 QueryableDataSourceView)
CanUpdate

取得值,這個值表示與目前 QueryableDataSourceView 控制項相關聯的 QueryableDataSource 物件是否支援更新作業。Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports update operations.

(繼承來源 QueryableDataSourceView)
Context

取得或設定目前的資料內容。Gets or sets the current data context.

ContextType

取得資料內容的型別。Gets the type of the data context.

ContextTypeName

取得或設定資料內容類別的名稱,這個資料內容類別包含 TableName 屬性中指定的欄位或屬性。Gets or sets the name of the data context class that contains the field or property that is specified in the TableName property.

DeleteParameters

取得集合,這個集合包含刪除作業期間所使用的參數。Gets the collection that contains the parameters that are used during a delete operation.

(繼承來源 QueryableDataSourceView)
EntitySet

取得或設定物件,這個物件包含要擷取的資料值。Gets or sets the object that contains the value of the data to retrieve.

EntitySetName

取得或設定資料內容類別中,表示資料集合之屬性或欄位的名稱。Gets or sets the name of the property or field in the data-context class that represents a data collection.

EntitySetType

取得或設定針對插入、刪除和更新作業建立之物件的名稱。Gets or sets the name of the object that is created for an insert, delete, or update operation.

EntityType

取得或設定針對插入、刪除和更新作業建立的物件。Gets or sets the object that is created for an insert, delete, or update operation.

EntityTypeName

取得或設定針對插入、刪除和更新作業建立之物件的名稱。Gets or sets the name of the object that is created for an insert, delete, or update operation.

Events

取得資料來源檢視的事件處理常式委派清單。Gets a list of event-handler delegates for the data source view.

(繼承來源 DataSourceView)
GroupBy

取得或設定屬性的名稱,在選取作業期間使用這些屬性將資料分組。Gets or sets the name or names of the properties to use during the select operation for grouping data.

(繼承來源 QueryableDataSourceView)
GroupByParameters

取得參數的集合,在選取作業期間使用這些參數的值建立 GroupBy 子句。Gets a collection of parameters whose values are used to create the GroupBy clause during the select operation.

(繼承來源 QueryableDataSourceView)
InsertParameters

取得插入作業期間所使用的參數集合。Gets a collection of parameters that are used during the insert operation.

(繼承來源 QueryableDataSourceView)
IsTrackingViewState

取得值,指出 QueryableDataSourceView 物件是否正在儲存變更至它的檢視狀態。Gets a value that indicates whether the QueryableDataSourceView object is saving changes to its view state.

(繼承來源 QueryableDataSourceView)
Name

取得資料來源檢視的名稱。Gets the name of the data source view.

(繼承來源 DataSourceView)
OrderBy

取得或設定屬性的名稱,選取作業期間會使用這些屬性排序資料。Gets or sets the name or names of the properties that are used during the select operation to sort data.

(繼承來源 QueryableDataSourceView)
OrderByParameters

取得參數集合,選取作業期間會使用這些參數排序資料。Gets a collection of parameters that are used during the select operation to sort data.

(繼承來源 QueryableDataSourceView)
OrderGroupsBy

取得或設定屬性的名稱,選取作業期間會使用這些屬性排序分組的資料。Gets or sets the names of the properties that are used during the select operation to sort grouped data.

(繼承來源 QueryableDataSourceView)
OrderGroupsByParameters

取得用於建立 OrderGroupsBy 子句的參數集合。Gets a collection of parameters that are used to create the OrderGroupsBy clause.

(繼承來源 QueryableDataSourceView)
SelectNew

取得或設定屬性以及擷取之資料中包含的計算值。Gets or sets the properties and calculated values that are included in the retrieved data.

(繼承來源 QueryableDataSourceView)
SelectNewParameters

取得擷取資料作業期間所使用的參數集合。Gets the collection of parameters that are used during a data-retrieval operation.

(繼承來源 QueryableDataSourceView)
UpdateParameters

取得更新作業期間所使用的參數集合。Gets the collection of parameters that are used during an update operation.

(繼承來源 QueryableDataSourceView)
Where

取得或設定值,這個值指定資料列在併入至擷取的資料中之前,必須為 true 的條件。Gets or sets a value that specifies what conditions must be true for a row to be included in the retrieved data.

(繼承來源 QueryableDataSourceView)
WhereParameters

取得用於建立 Where 子句的參數集合。Gets a collection of parameters that are used to create a Where clause.

(繼承來源 QueryableDataSourceView)

方法

BuildDeleteObject(IDictionary, IDictionary, IDictionary<String,Exception>)

建立要用於刪除作業的物件。Creates the objects to use for the delete operation.

(繼承來源 QueryableDataSourceView)
BuildInsertObject(IDictionary, IDictionary<String,Exception>)

使用要插入的值和作業失敗時要顯示的錯誤訊息,建立要用於插入作業的物件。Creates the objects to use for the insert operation by using the values to insert and the error message to display if the operation fails.

(繼承來源 QueryableDataSourceView)
BuildQuery(DataSourceSelectArguments)

使用資料來源的 Select 引數建立 Select 查詢運算式。Creates a Select query expression by using the select arguments of the data source.

(繼承來源 QueryableDataSourceView)
BuildUpdateObjects(IDictionary, IDictionary, IDictionary, IDictionary<String,Exception>)

使用指定的值建立要用於更新作業的物件。Creates the objects to use for the update operation by using the specified values.

(繼承來源 QueryableDataSourceView)
CanExecute(String)

判斷是否可以執行指定的命令。Determines whether the specified command can be executed.

(繼承來源 DataSourceView)
ClearOriginalValues()

清除原始值。Clears the original values.

(繼承來源 QueryableDataSourceView)
CreateContext(DataSourceOperation)

針對指定的作業建立資料內容和實體集型別的執行個體。Creates an instance of the data context and entity-set type for the specified operation.

CreateQueryContext(DataSourceSelectArguments)

建立查詢內容物件的執行個體,這個執行個體包含評估的參數集合。Creates an instance of a query context object that contains the evaluated parameter collections.

(繼承來源 QueryableDataSourceView)
Delete(IDictionary, IDictionary)

執行刪除作業。Performs a delete operation.

(繼承來源 QueryableDataSourceView)
Delete(IDictionary, IDictionary, DataSourceViewOperationCallback)

DataSourceView 物件表示的資料清單上,執行非同步刪除作業。Performs an asynchronous delete operation on the list of data that the DataSourceView object represents.

(繼承來源 DataSourceView)
DeleteObject(Object)

從資料表刪除資料物件。Deletes a data object from a table.

(繼承來源 QueryableDataSourceView)
DisposeContext()

在執行作業之後處置內容。Disposes the context after an operation is performed.

DisposeContext(Object)

在執行作業之後處置指定的資料內容。Disposes the specified data context after an operation is performed.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
ExecuteCommand(String, IDictionary, IDictionary)

執行指定命令。Executes the specified command.

(繼承來源 DataSourceView)
ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)

執行指定命令。Executes the specified command.

(繼承來源 DataSourceView)
ExecuteDelete(IDictionary, IDictionary)

使用指定的索引鍵和用於偵測衝突的資料列值,執行刪除作業。Performs a delete operation using the specified keys and using row values that are used to detect conflicts.

ExecuteInsert(IDictionary)

使用集合中指定的值,執行插入作業。Performs an insert operation by using the values specified in a collection.

ExecutePaging(IQueryable, QueryContext)

使用 QueryContext 物件中的 QueryableDataSource 物件執行分頁。Executes paging by using the QueryContext object from the QueryableDataSource object.

(繼承來源 QueryableDataSourceView)
ExecuteQuery(IQueryable, QueryContext)

IQueryable<T> 物件執行查詢、排序或分頁作業。Performs a query, sort, or paging operation on the IQueryable<T> object.

(繼承來源 QueryableDataSourceView)
ExecuteQueryExpressions(IQueryable, QueryContext)

使用 IQueryable 物件和 QueryContext 物件執行查詢運算式。Executes query expressions by using an IQueryable object and the QueryContext object.

(繼承來源 QueryableDataSourceView)
ExecuteSelect(DataSourceSelectArguments)

執行資料擷取作業。Performs a data-retrieval operation.

(繼承來源 QueryableDataSourceView)
ExecuteSorting(IQueryable, QueryContext)

執行排序作業。Performs a sorting operation.

(繼承來源 QueryableDataSourceView)
ExecuteUpdate(IDictionary, IDictionary, IDictionary)

使用指定的資料列索引鍵值、資料列值和用於偵測衝突的資料列值,執行更新作業。Performs an update operation by using the specified row-key values, the row values, and the row values that are used to detect conflicts.

GetDataObjectType(Type)

擷取要用於刪除、插入和更新作業之資料物件的型別。Retrieves the type of data object to use for the delete, insert, and update operations.

GetEntitySetType()

將實體集當做屬性、欄位或資料內容擷取。Retrieves the entity set as a property, field, or data context.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetOriginalValues(IDictionary)

擷取在 Select 作業期間針對指定的索引鍵儲存的原始值。Retrieves the original values for the specified keys that were stored during the Select operation.

(繼承來源 QueryableDataSourceView)
GetSource(QueryContext)

擷取查詢內容的來源。Retrieves the source of the query context.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
HandleValidationErrors(IDictionary<String,Exception>, DataSourceOperation)

當資料物件建置程序中的 CRUD 作業失敗時,由執行 CRUD 作業的方法呼叫。Called by methods that perform CRUD operations when a CRUD operation fails in the data-object building process.

(繼承來源 QueryableDataSourceView)
Insert(IDictionary)

QueryableDataSourceView 物件表示的資料項目上,執行非同步插入作業。Performs an asynchronous insert operation on the data items that the QueryableDataSourceView object represents.

(繼承來源 QueryableDataSourceView)
Insert(IDictionary, DataSourceViewOperationCallback)

DataSourceView 物件表示的資料清單上,執行非同步插入作業。Performs an asynchronous insert operation on the list of data that the DataSourceView object represents.

(繼承來源 DataSourceView)
InsertObject(Object)

將資料物件插入 QueryableDataSourceView 物件中。Inserts data objects into a QueryableDataSourceView object.

(繼承來源 QueryableDataSourceView)
LoadViewState(Object)

還原資料來源檢視之先前儲存的檢視狀態。Restores the previously saved view state for the data source view.

(繼承來源 QueryableDataSourceView)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnDataSourceViewChanged(EventArgs)

引發 DataSourceViewChanged 事件。Raises the DataSourceViewChanged event.

(繼承來源 DataSourceView)
OnQueryCreated(QueryCreatedEventArgs)

QueryCreated 控制項建立 QueryableDataSource 物件之後引發 IQueryable 事件。Raises the QueryCreated event after the QueryableDataSource control has created an IQueryable object.

(繼承來源 QueryableDataSourceView)
OnQueryParametersChanged(Object, EventArgs)

呼叫 RaiseViewChanged() 方法。Calls the RaiseViewChanged() method.

(繼承來源 QueryableDataSourceView)
RaiseUnsupportedCapabilityError(DataSourceCapabilities)

RaiseUnsupportedCapabilitiesError(DataSourceView) 方法呼叫,以比較針對 ExecuteSelect(DataSourceSelectArguments) 作業要求的功能與檢視支援的功能。Called by the RaiseUnsupportedCapabilitiesError(DataSourceView) method to compare the capabilities requested for an ExecuteSelect(DataSourceSelectArguments) operation against those that the view supports.

(繼承來源 DataSourceView)
RaiseViewChanged()

呼叫 OnDataSourceViewChanged(EventArgs) 方法。Calls the OnDataSourceViewChanged(EventArgs) method.

(繼承來源 QueryableDataSourceView)
SaveViewState()

儲存自頁面張貼至伺服器以來,QueryableDataSourceView 物件檢視狀態的變更。Saves changes to view state for the QueryableDataSourceView object since the time that the page was posted to the server.

(繼承來源 QueryableDataSourceView)
Select(DataSourceSelectArguments, DataSourceViewSelectCallback)

從基礎資料儲存區非同步取得資料清單。Gets a list of data asynchronously from the underlying data storage.

(繼承來源 DataSourceView)
StoreOriginalValues(IList)

在控制項的檢視狀態下,儲存來自 Select 作業的原始值。Stores the original values from the Select operation in the control's view state.

(繼承來源 QueryableDataSourceView)
StoreOriginalValues(IList, Func<PropertyDescriptor,Boolean>)

當啟用刪除或更新作業時,將選取作業中的原始值儲存在控制項的檢視狀態中。Stores the original values from the select operation in the control's view state when delete or update operations are enabled.

(繼承來源 QueryableDataSourceView)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
TrackViewState()

導致追蹤伺服器控制項檢視狀態的變更,以便將這些變更儲存於伺服器控制項的狀態中。Causes tracking of view-state changes to the server control so that they can be stored in the server control's state.

(繼承來源 QueryableDataSourceView)
Update(IDictionary, IDictionary, IDictionary)

執行更新作業。Performs an update operation.

(繼承來源 QueryableDataSourceView)
Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback)

DataSourceView 物件表示的資料清單上,執行非同步更新作業。Performs an asynchronous update operation on the list of data that the DataSourceView object represents.

(繼承來源 DataSourceView)
UpdateObject(Object, Object)

更新資料物件。Updates a data object.

(繼承來源 QueryableDataSourceView)

事件

DataSourceViewChanged

當資料來源檢視已變更時發生。Occurs when the data source view has changed.

(繼承來源 DataSourceView)
QueryCreated

發生於查詢建立時。Occurs when a query is created.

(繼承來源 QueryableDataSourceView)

明確介面實作

IStateManager.IsTrackingViewState

由類別實作時會取得值,這個值表示伺服器控制項是否正追蹤其檢視狀態變更。When implemented by a class, gets a value that indicates whether a server control is tracking its view-state changes.

(繼承來源 QueryableDataSourceView)
IStateManager.LoadViewState(Object)

由類別實作時,載入伺服器控制項先前儲存的控制項檢視狀態。When implemented by a class, loads the server control's previously saved view state for the control.

(繼承來源 QueryableDataSourceView)
IStateManager.SaveViewState()

由類別實作時,將伺服器控制項檢視狀態的變更儲存至物件。When implemented by a class, saves the changes to a server control's view state to an object.

(繼承來源 QueryableDataSourceView)
IStateManager.TrackViewState()

由類別實作時會取得值,這個值表示伺服器控制項是否正追蹤其檢視狀態變更。When implemented by a class, gets a value that indicates whether a server control is tracking its view-state changes.

(繼承來源 QueryableDataSourceView)

適用於