LinqDataSourceDesigner 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在視覺化設計工具中,為 LinqDataSource 控制項提供設計階段支援。
public ref class LinqDataSourceDesigner : System::Web::UI::Design::DataSourceDesigner
public class LinqDataSourceDesigner : System.Web.UI.Design.DataSourceDesigner
type LinqDataSourceDesigner = class
inherit DataSourceDesigner
Public Class LinqDataSourceDesigner
Inherits DataSourceDesigner
- 繼承
-
LinqDataSourceDesigner
備註
在視覺化設計工具中,當您切換至設計工具檢視時, (例如 Visual Studio 中的 設計 視圖) ,則會 LinqDataSource 剖析控制項標記。 然後會在設計介面上建立控制項的設計階段版本。 當您切換到來源檢視時,設計階段控制項會保存為網頁的標記。
類別 LinqDataSourceDesigner 提供視覺化設計工具中控制項的設計階段支援 LinqDataSource 。
給繼承者的注意事項
若要在設計階段提供動作清單功能表之衍生類別中的命令,您必須覆寫 ActionLists 屬性。 針對這個屬性,傳回自訂 DesignerActionListCollection 物件,其中包含衍生自 DesignerActionList 物件的專案。
如需詳細資訊,請參閱 DataSourceDesigner 類別。
建構函式
LinqDataSourceDesigner() |
初始化 LinqDataSourceDesigner 類別的新執行個體。 |
屬性
ActionLists |
取得用於在設計階段建立動作清單功能表的項目清單。 |
AllowResize |
取得值,指出是否可在設計階段環境中調整控制項的大小。 (繼承來源 ControlDesigner) |
AssociatedComponents |
取得元件集合,該集合與設計工具管理的元件相關聯。 (繼承來源 ComponentDesigner) |
AutoFormats |
針對設計階段的相關聯控制項,取得要在 [自動格式化] 對話方塊中顯示之預先定義的自動格式化配置集合。 (繼承來源 ControlDesigner) |
Behavior |
已淘汰.
取得或設定與設計工具相關聯的 DHTML 行為。 (繼承來源 HtmlControlDesigner) |
CanConfigure |
取得值,這個值表示設計主應用程式是否可以呼叫 Configure() 方法。 |
CanRefreshSchema |
取得值,這個值表示設計主應用程式是否可以呼叫 RefreshSchema(Boolean) 方法。 |
Component |
取得這個設計工具正在設計的元件。 (繼承來源 ComponentDesigner) |
ContextTypeName |
取得或設定型別的名稱,該型別所包含之屬性的值具有您要擷取的資料。 |
DataBindings |
取得目前控制項的資料繫結 (Data Binding) 集合。 (繼承來源 HtmlControlDesigner) |
DataBindingsEnabled |
取得值,指出關聯控制項的包含區域是否支援資料繫結。 (繼承來源 ControlDesigner) |
Delete |
取得或設定刪除作業的值。 |
DesignerState |
取得物件,用於在設計階段保存關聯控制項的資料。 (繼承來源 ControlDesigner) |
DesignTimeElement |
已淘汰.
取得設計階段物件,表示與設計介面上 HtmlControlDesigner 物件相關聯的控制項。 (繼承來源 HtmlControlDesigner) |
DesignTimeElementView |
已淘汰.
取得控制項設計工具的檢視控制項物件。 (繼承來源 ControlDesigner) |
DesignTimeHtmlRequiresLoadComplete |
已淘汰.
取得值,指出設計主應用程式在呼叫 GetDesignTimeHtml 方法之前是否必須完成載入。 (繼承來源 ControlDesigner) |
EnableDelete |
取得或設定值,這個值表示是否可以在執行階段時從資料來源刪除資料列。 |
EnableInsert |
取得或設定值,這個值表示是否可以在執行階段時將資料列插入資料來源中。 |
EnableUpdate |
取得或設定值,這個值表示是否可以在執行階段時更新資料來源中的資料列。 |
Expressions |
在設計階段取得目前控制項的運算式繫結。 (繼承來源 HtmlControlDesigner) |
GroupBy |
取得或設定在建立 Group By 子句時所使用的值。 |
HidePropertiesInTemplateMode |
取得值,指示當控制項處於樣板模式時,關聯控制項的屬性是否會隱藏。 (繼承來源 ControlDesigner) |
ID |
取得或設定控制項的 ID 字串。 (繼承來源 ControlDesigner) |
InheritanceAttribute |
取得屬性 (Attribute),表示相關元件的繼承 (Inheritance) 型別。 (繼承來源 ComponentDesigner) |
Inherited |
取得值,表示是否要繼承這個元件。 (繼承來源 ComponentDesigner) |
Insert |
取得或設定刪除作業的值。 |
InTemplateMode |
取得值,指出控制項在設計主應用程式中處於樣板檢視模式還是編輯模式。 InTemplateMode 屬性是唯讀的。 (繼承來源 ControlDesigner) |
IsDirty |
已淘汰.
取得或設定值,指出 Web 伺服器控制項是否已標記為變更。 (繼承來源 ControlDesigner) |
OrderBy |
取得或設定在建立 Order By 子句時所使用的值。 |
OrderGroupsBy |
取得或設定在建立 Order Groups By 子句時所使用的值。 |
ParentComponent |
取得這個設計工具的父元件。 (繼承來源 ComponentDesigner) |
ReadOnly |
已淘汰.
取得或設定值,指出控制項屬性於設計階段是否為唯讀。 (繼承來源 ControlDesigner) |
RootDesigner |
為包含關聯控制項的 Web Form 網頁,取得控制項設計工具。 (繼承來源 ControlDesigner) |
Select |
取得或設定包含選取作業之值的字串。 |
ServiceProvider |
取得與 LinqDataSource 執行個體相關聯的服務提供者。 |
SetTextualDefaultProperty |
在視覺化設計工具中,為 LinqDataSource 控制項提供設計階段支援。 (繼承來源 ComponentDesigner) |
ShadowProperties |
取得覆寫使用者設定的屬性值集合。 (繼承來源 ComponentDesigner) |
ShouldCodeSerialize |
已淘汰.
取得或設定值,指出是否應該於序列化 (Serialization) 期間,在程式碼後置 (Code-Behind) 檔案中為目前設計文件建立控制項的欄位宣告。 (繼承來源 HtmlControlDesigner) |
SuppressingDataSourceEvents |
取得值,指出是否發生 DataSourceChanged 事件或 RefreshSchema(Boolean) 方法。 (繼承來源 DataSourceDesigner) |
TableName |
取得或設定 TableName 執行個體的 LinqDataSource 屬性。 |
Tag |
取得物件,表示關聯控制項的 HTML 標記項目。 (繼承來源 ControlDesigner) |
TemplateGroups |
取得範本群組集合,各範本群組包含一個或多個範本定義。 (繼承來源 ControlDesigner) |
Update |
取得更新作業的值。 |
UsePreviewControl |
取得值,其中該值會表示控制項設計工具是否使用暫時預覽控制項以產生設計階段 HTML 標記。 (繼承來源 ControlDesigner) |
Verbs |
取得與設計工具相關元件所支援的設計階段動詞命令 (Verb)。 (繼承來源 ComponentDesigner) |
ViewControl |
取得或設定 Web 伺服器控制項,可用於預覽設計階段的 HTML 標記。 (繼承來源 ControlDesigner) |
ViewControlCreated |
取得或設定值,指出是否已建立 |
Visible |
取得值,這個值表示控制項在設計階段是否為可見的。 (繼承來源 ControlDesigner) |
Where |
取得或設定 LinqDataSource 控制項的 Where 屬性。 |
方法
事件
DataSourceChanged |
在關聯資料來源的任何屬性變更時發生。 (繼承來源 DataSourceDesigner) |
SchemaRefreshed |
在結構描述已重新整理之後發生。 (繼承來源 DataSourceDesigner) |
明確介面實作
IDesignerFilter.PostFilterAttributes(IDictionary) |
如需這個成員的描述,請參閱 PostFilterAttributes(IDictionary) 方法。 (繼承來源 ComponentDesigner) |
IDesignerFilter.PostFilterEvents(IDictionary) |
如需這個成員的描述,請參閱 PostFilterEvents(IDictionary) 方法。 (繼承來源 ComponentDesigner) |
IDesignerFilter.PostFilterProperties(IDictionary) |
如需這個成員的描述,請參閱 PostFilterProperties(IDictionary) 方法。 (繼承來源 ComponentDesigner) |
IDesignerFilter.PreFilterAttributes(IDictionary) |
如需這個成員的描述,請參閱 PreFilterAttributes(IDictionary) 方法。 (繼承來源 ComponentDesigner) |
IDesignerFilter.PreFilterEvents(IDictionary) |
如需這個成員的描述,請參閱 PreFilterEvents(IDictionary) 方法。 (繼承來源 ComponentDesigner) |
IDesignerFilter.PreFilterProperties(IDictionary) |
如需這個成員的描述,請參閱 PreFilterProperties(IDictionary) 方法。 (繼承來源 ComponentDesigner) |
ITreeDesigner.Children |
如需這個成員的描述,請參閱 Children 屬性。 (繼承來源 ComponentDesigner) |
ITreeDesigner.Parent |
如需這個成員的描述,請參閱 Parent 屬性。 (繼承來源 ComponentDesigner) |
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應