Partager via


EntityInstanceIdEncoder, classe (Microsoft.Office.Server.ApplicationRegistry.Infrastructure)

Provides encoding and decoding of entity instance identifiers.

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

Syntaxe

'Déclaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
Public NotInheritable Class EntityInstanceIdEncoder
'Utilisation
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
public static class EntityInstanceIdEncoder

Remarques

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. Serializing the identifier column enables you to call instance methods. When the Business Data Catalog serializes the ID column, it encodes it, so you must decode the ID column before you can use the ID values. To decode the ID column, use the EntityInstanceIdEncoder.DecodeEntityInstanceId() method and pass in ColNameSerializedId, which is the name the Business Data Catalog assigns to the serialized ID column. This decodes the identifiers and returns an array of identifier values.

Hiérarchie d'héritage

System.Object
  Microsoft.Office.Server.ApplicationRegistry.Infrastructure.EntityInstanceIdEncoder

Sécurité des threads

Les membres statiques publics de ce type (Shared en Visual Basic) sont sécurisés au niveau des threads. Il n'est pas garanti que les membres d'instance soient sécurisés au niveau des threads.

Voir aussi

Référence

Membres EntityInstanceIdEncoder
Microsoft.Office.Server.ApplicationRegistry.Infrastructure, espace de noms