LobSystemInstance.GetEntities 方法 (Microsoft.Office.Server.ApplicationRegistry.MetadataModel)

Gets the entities defined for the LobSystemInstance object.

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

语法

声明
Public Function GetEntities As NamedEntityDictionary
用法
Dim instance As LobSystemInstance
Dim returnValue As NamedEntityDictionary

returnValue = instance.GetEntities
public NamedEntityDictionary GetEntities ()

示例

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

        }

另请参阅

参考

LobSystemInstance 类
LobSystemInstance 成员
Microsoft.Office.Server.ApplicationRegistry.MetadataModel 命名空间