EntityInstanceIdEncoder 类 (Microsoft.Office.Server.ApplicationRegistry.Infrastructure)

Provides encoding and decoding of entity instance identifiers.

命名空间: Microsoft.Office.Server.ApplicationRegistry.Infrastructure
程序集: Microsoft.SharePoint.Portal (在 microsoft.sharepoint.portal.dll 中)

语法

声明
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
Public NotInheritable Class EntityInstanceIdEncoder
用法
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
public static class EntityInstanceIdEncoder

备注

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.

继承层次结构

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

线程安全性

此类型的任何公共静态( Visual Basic 中共享)成员是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

参考

EntityInstanceIdEncoder 成员
Microsoft.Office.Server.ApplicationRegistry.Infrastructure 命名空间