Partager via


IEntityInstance.EntityAsFormattedDataRow, méthode (Microsoft.Office.Server.ApplicationRegistry.Runtime)

Exposes the entity instance as a DataRow object in the specified DataTable object with formatting of the complex fields in the entity instance.

Espace de noms : Microsoft.Office.Server.ApplicationRegistry.Runtime
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
Function EntityAsFormattedDataRow ( _
    tableToAddRowTo As DataTable _
) As DataRow
'Utilisation
Dim instance As IEntityInstance
Dim tableToAddRowTo As DataTable
Dim returnValue As DataRow

returnValue = instance.EntityAsFormattedDataRow(tableToAddRowTo)
DataRow EntityAsFormattedDataRow (
    DataTable tableToAddRowTo
)

Paramètres

  • tableToAddRowTo
    The DataTable object to add the entity instance as a row to.

Valeur de retour

A DataRow object containing all the fields in the entity instance.

Remarques

The DataTable is a central object in the Microsoft ADO.NET library. It represents one table of in-memory data.

When entity instances are transformed into data rows in a data table, they lose the special semantics attached to them in the Business Data Catalog, such as the ability to call instance methods on them. Therefore, you should transform entity instances into data rows only if absolutely necessary. Avoid using ADO.NET adapters that convert Business Data Catalog return types for maximum performance.

Voir aussi

Référence

IEntityInstance, interface
Membres IEntityInstance
Microsoft.Office.Server.ApplicationRegistry.Runtime, espace de noms