Click or drag to resize

RecordClass Constructor (DataRow)

Constructor that takes a DataRow as a input parameter. Assignment itself is done in the Sub AssignAllRow. The property Row contains the datarepresentation at the time of construction. Assignment of the derived classes properties in general use beyound the constructor is NOT reflected in the DataRow property Row.

Namespace:  Dynamicweb.News
Assembly:  Dynamicweb.News (in Dynamicweb.News.dll) Version: 1.0.10
Syntax
public RecordClass(
	DataRow rwRow
)

Parameters

rwRow
Type: System.DataDataRow
DataRow that contains data to assign to the type strong object
Examples
Public Class TestAssignment
    inherits TemplateClass

    Public Sub Test(ByVal rwRow as DataRow)
          Dim Template as TemplateClass

        Template = New TemplateClass(rwRow)
        Template.TemplateID = 7     ' This does not assign the TemplateID of the Row property.
    End Sub
End Class
See Also