: EntityInstanceIdEncoder.DecodeEntityInstanceId (Método) (Microsoft.Office.Server.ApplicationRegistry.Infrastructure)
Decodes entity instance identifiers.
Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)
Sintaxis
'Declaración
Public Shared Function DecodeEntityInstanceId ( _
encodedId As String _
) As Object()
'Uso
Dim encodedId As String
Dim returnValue As Object()
returnValue = EntityInstanceIdEncoder.DecodeEntityInstanceId(encodedId)
public static Object[] DecodeEntityInstanceId (
string encodedId
)
Parámetros
- encodedId
The encoded identifier column.
Valor devuelto
An array of identifier values.
Comentarios
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 ID 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 identifier 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.
Vea también
Referencia
EntityInstanceIdEncoder (Clase)
EntityInstanceIdEncoder (Miembros)
Microsoft.Office.Server.ApplicationRegistry.Infrastructure (Espacio de nombres)