DynamicRecord 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用自訂類型描述元和 Dynamic Language Runtime (DLR) 功能表示資料記錄。
public sealed class DynamicRecord : System.Dynamic.DynamicObject, System.ComponentModel.ICustomTypeDescriptor
type DynamicRecord = class
inherit DynamicObject
interface ICustomTypeDescriptor
Public NotInheritable Class DynamicRecord
Inherits DynamicObject
Implements ICustomTypeDescriptor
- 繼承
-
DynamicRecord
- 實作
屬性
Columns |
傳回清單,其中包含 實例中 DynamicRecord 每個資料行的名稱。 |
Item[Int32] |
使用指定的索引傳回 實例中 DynamicRecord 資料行的值。 |
Item[String] |
使用指定的名稱,傳回 實例中 DynamicRecord 資料行的值。 |
方法
GetDynamicMemberNames() |
傳回包含實例所有動態成員 DynamicRecord 名稱的清單。 |
TryGetMember(GetMemberBinder, Object) |
使用指定的名稱取得成員的值 DynamicRecord 。 |
明確介面實作
ICustomTypeDescriptor.GetAttributes() |
為元件的這個執行個體傳回自訂屬性清單。 |
ICustomTypeDescriptor.GetClassName() |
為元件的這個執行個體傳回類別名稱。 |
ICustomTypeDescriptor.GetComponentName() |
為元件的這個執行個體傳回名稱。 |
ICustomTypeDescriptor.GetConverter() |
為元件的這個執行個體傳回類型轉換器。 |
ICustomTypeDescriptor.GetDefaultEvent() |
傳回這個元件執行個體的預設事件。 |
ICustomTypeDescriptor.GetDefaultProperty() |
傳回這個元件執行個體的屬性。 |
ICustomTypeDescriptor.GetEditor(Type) |
傳回元件的這個執行個體之指定類型編輯器。 |
ICustomTypeDescriptor.GetEvents() |
傳回這個元件執行個體的事件。 |
ICustomTypeDescriptor.GetEvents(Attribute[]) |
使用指定的篩選條件,為元件的這個執行個體傳回事件。 |
ICustomTypeDescriptor.GetProperties() |
傳回元件之這個執行個體的屬性。 |
ICustomTypeDescriptor.GetProperties(Attribute[]) |
使用指定的篩選條件,為元件的這個執行個體傳回屬性。 |
ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) |
傳回包含所指定屬性的物件。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應