0 out of 1 rated this helpful - Rate this topic

DynamicRecord Class

Represents a data record by using a custom type descriptor and the capabilities of the Dynamic Language Runtime (DLR).

Namespace:  WebMatrix.Data
Assembly:  WebMatrix.Data (in WebMatrix.Data.dll)
public sealed class DynamicRecord : DynamicObject, 
	ICustomTypeDescriptor

The DynamicRecord type exposes the following members.

  NameDescription
Public propertyColumnsReturns a list that contains the name of each column in the DynamicRecord instance.
Public propertyItem[Int32]Returns the value of a column in the DynamicRecord instance using the specified index.
Public propertyItem[String]Returns the value of a column in the DynamicRecord instance using the specified name.
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetDynamicMemberNamesInfrastructure. Returns a list that contains the name of all dynamic members of the DynamicRecord instance. (Overrides DynamicObject.GetDynamicMemberNames().)
Public methodGetHashCode (Inherited from Object.)
Public methodGetMetaObject (Inherited from DynamicObject.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodTryBinaryOperation (Inherited from DynamicObject.)
Public methodTryConvert (Inherited from DynamicObject.)
Public methodTryCreateInstance (Inherited from DynamicObject.)
Public methodTryDeleteIndex (Inherited from DynamicObject.)
Public methodTryDeleteMember (Inherited from DynamicObject.)
Public methodTryGetIndex (Inherited from DynamicObject.)
Public methodTryGetMemberInfrastructure. Gets the value of a DynamicRecord member using the specified name. (Overrides DynamicObject.TryGetMember(GetMemberBinder, Object).)
Public methodTryInvoke (Inherited from DynamicObject.)
Public methodTryInvokeMember (Inherited from DynamicObject.)
Public methodTrySetIndex (Inherited from DynamicObject.)
Public methodTrySetMember (Inherited from DynamicObject.)
Public methodTryUnaryOperation (Inherited from DynamicObject.)
Top
  NameDescription
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetAttributesInfrastructure. Returns a list of custom attributes for this instance of a component.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetClassNameInfrastructure. Returns the class name for this instance of a component.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetComponentNameInfrastructure. Returns the name for this instance of a component.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetConverterInfrastructure. Returns the type converter for this instance of a component.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetDefaultEventInfrastructure. Returns the default event for this instance of a component.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetDefaultPropertyInfrastructure. Returns the default property for this instance of a component.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetEditorInfrastructure. Returns an editor of the specified type for this instance of a component.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetEvents()Infrastructure. Returns the events for this instance of a component.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetEvents(Attribute[])Infrastructure. Returns the events for this instance of a component by using the specified filter.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetProperties()Infrastructure. Returns the properties for this instance of a component.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetProperties(Attribute[])Infrastructure. Returns the properties for this instance of a component by using the specified filter.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetPropertyOwnerInfrastructure. Returns the object that contains the specified property.
Top

The DynamicRecord class makes it possible to read data record values by using the familiar indexing and member-access syntax of the host language.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.