Compartilhar via


Método LobSystemInstance.GetEntities

Obtém as entidades definidas para o objeto LobSystemInstance T:Microsoft.Office.Server.ApplicationRegistry.MetadataModel.LobSystemInstance.

Espaço para nome Microsoft.Office.Server.ApplicationRegistry.MetadataModel
Conjunto de Módulos (Assembly) Microsoft.SharePoint.Portal (em microsoft.sharepoint.portal.dll)

A sintaxe

Public Function GetEntities As NamedEntityDictionary

Dim instance As LobSystemInstance
Dim returnValue As NamedEntityDictionary

returnValue = instance.GetEntities
public NamedEntityDictionary GetEntities ()

Exemplo

   static void GetEntity()
        {
            NamedLobSystemInstanceDictionary sysInstances = ApplicationRegistry.GetLobSystemInstances();
            LobSystemInstance AdvWorksIns = sysInstances["AdventureWorksSample"];
            Entity prodEntity = AdvWorksIns.GetEntities()["Product"];
            Console.WriteLine(prodEntity.Id.ToString());
            Console.Read();

        }

Consulte também

Referência

LobSystemInstance De classe
LobSystemInstance Membros
Microsoft.Office.Server.ApplicationRegistry.MetadataModel De espaço para nome