Partager via


LobSystemInstance.GetEntities, méthode (Microsoft.Office.Server.ApplicationRegistry.MetadataModel)

Gets the entities defined for the LobSystemInstance object.

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

Syntaxe

'Déclaration
Public Function GetEntities As NamedEntityDictionary
'Utilisation
Dim instance As LobSystemInstance
Dim returnValue As NamedEntityDictionary

returnValue = instance.GetEntities
public NamedEntityDictionary GetEntities ()

Exemple

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

        }

Voir aussi

Référence

LobSystemInstance, classe
Membres LobSystemInstance
Microsoft.Office.Server.ApplicationRegistry.MetadataModel, espace de noms