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

Gets the parent LobSystem object.

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

语法

声明
Public Function GetLobSystem As LobSystem
用法
Dim instance As LobSystemInstance
Dim returnValue As LobSystem

returnValue = instance.GetLobSystem
public LobSystem GetLobSystem ()

示例

  static void GetLOBSystem()
        {
            NamedLobSystemInstanceDictionary sysInstances = ApplicationRegistry.GetLobSystemInstances();
            LobSystemInstance AdvWorksIns = sysInstances["AdventureWorksSample"];
            LobSystem AdvWorksSys = AdvWorksIns.GetLobSystem();
            Console.WriteLine(AdvWorksSys.Name.ToString());
            Console.WriteLine(AdvWorksSys.Id.ToString());
            Console.Read();
}

另请参阅

参考

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