DynamicRecord Class
Represents a data record by using a custom type descriptor and the capabilities of the Dynamic Language Runtime (DLR).
Inheritance Hierarchy
System.Object
System.Dynamic.DynamicObject
WebMatrix.Data.DynamicRecord
Namespace: WebMatrix.Data
Assembly: WebMatrix.Data (in WebMatrix.Data.dll)
Syntax
'Declaration
Public NotInheritable Class DynamicRecord _
Inherits DynamicObject _
Implements ICustomTypeDescriptor
'Usage
Dim instance As DynamicRecord
public sealed class DynamicRecord : DynamicObject,
ICustomTypeDescriptor
public ref class DynamicRecord sealed : public DynamicObject,
ICustomTypeDescriptor
[<SealedAttribute>]
type DynamicRecord =
class
inherit DynamicObject
interface ICustomTypeDescriptor
end
public final class DynamicRecord extends DynamicObject implements ICustomTypeDescriptor
The DynamicRecord type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
Columns | Returns a list that contains the name of each column in the DynamicRecord instance. |
![]() |
Item[Int32] | Returns the value of a column in the DynamicRecord instance using the specified index. |
![]() |
Item[String] | Returns the value of a column in the DynamicRecord instance using the specified name. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Equals | (Inherited from Object.) |
![]() |
GetDynamicMemberNames | Returns a list that contains the name of all dynamic members of the DynamicRecord instance. (Overrides DynamicObject.GetDynamicMemberNames().) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetMetaObject | (Inherited from DynamicObject.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
ToString | (Inherited from Object.) |
![]() |
TryBinaryOperation | (Inherited from DynamicObject.) |
![]() |
TryConvert | (Inherited from DynamicObject.) |
![]() |
TryCreateInstance | (Inherited from DynamicObject.) |
![]() |
TryDeleteIndex | (Inherited from DynamicObject.) |
![]() |
TryDeleteMember | (Inherited from DynamicObject.) |
![]() |
TryGetIndex | (Inherited from DynamicObject.) |
![]() |
TryGetMember | Gets the value of a DynamicRecord member using the specified name. (Overrides DynamicObject.TryGetMember(GetMemberBinder, Object%).) |
![]() |
TryInvoke | (Inherited from DynamicObject.) |
![]() |
TryInvokeMember | (Inherited from DynamicObject.) |
![]() |
TrySetIndex | (Inherited from DynamicObject.) |
![]() |
TrySetMember | (Inherited from DynamicObject.) |
![]() |
TryUnaryOperation | (Inherited from DynamicObject.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() |
ICustomTypeDescriptor.GetAttributes | Returns a list of custom attributes for this instance of a component. |
![]() ![]() |
ICustomTypeDescriptor.GetClassName | Returns the class name for this instance of a component. |
![]() ![]() |
ICustomTypeDescriptor.GetComponentName | Returns the name for this instance of a component. |
![]() ![]() |
ICustomTypeDescriptor.GetConverter | Returns the type converter for this instance of a component. |
![]() ![]() |
ICustomTypeDescriptor.GetDefaultEvent | Returns the default event for this instance of a component. |
![]() ![]() |
ICustomTypeDescriptor.GetDefaultProperty | Returns the default property for this instance of a component. |
![]() ![]() |
ICustomTypeDescriptor.GetEditor | Returns an editor of the specified type for this instance of a component. |
![]() ![]() |
ICustomTypeDescriptor.GetEvents() | Returns the events for this instance of a component. |
![]() ![]() |
ICustomTypeDescriptor.GetEvents(Attribute[]) | Returns the events for this instance of a component by using the specified filter. |
![]() ![]() |
ICustomTypeDescriptor.GetProperties() | Returns the properties for this instance of a component. |
![]() ![]() |
ICustomTypeDescriptor.GetProperties(Attribute[]) | Returns the properties for this instance of a component by using the specified filter. |
![]() ![]() |
ICustomTypeDescriptor.GetPropertyOwner | Returns the object that contains the specified property. |
Top
Remarks
The DynamicRecord class makes it possible to read data record values by using the familiar indexing and member-access syntax of the host language.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.