EntityInstanceReference.Deserialize Method
Creates an EntityInstanceReference corresponding to the given string representation using metadata from the given Metadata Store.
Namespace: Microsoft.BusinessData.Runtime
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Public Shared Function Deserialize ( _
serializedReference As String, _
catalog As IMetadataCatalog _
) As EntityInstanceReference
'Usage
Dim serializedReference As String
Dim catalog As IMetadataCatalog
Dim returnValue As EntityInstanceReference
returnValue = EntityInstanceReference.Deserialize(serializedReference, _
catalog)
public static EntityInstanceReference Deserialize(
string serializedReference,
IMetadataCatalog catalog
)
Parameters
serializedReference
Type: System.StringThe string representation of an External Item reference.
catalog
Type: Microsoft.BusinessData.MetadataModel.IMetadataCatalogThe catalog to connect to the Metadata Store.
Return Value
Type: Microsoft.BusinessData.Runtime.EntityInstanceReference
The created External Item reference.
Remarks
Instances of objects in the Business Data Connectivity object model are tied to the Metadata Store they are obtained from. Using instances tied to one Metadata Store with the instances from another Metadata Store will cause data corruption and other unexpected behavior. For more information, see DatabaseBackedMetadataCatalog, FileBackedMetadataCatalog, and RemoteSharedFileBackedMetadataCatalog.
See Also
Reference
EntityInstanceReference Members