LobSystemInstance.GetLobSystem, méthode (Microsoft.Office.Server.ApplicationRegistry.MetadataModel)
Gets the parent LobSystem object.
Espace de noms : Microsoft.Office.Server.ApplicationRegistry.MetadataModel
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)
Syntaxe
'Déclaration
Public Function GetLobSystem As LobSystem
'Utilisation
Dim instance As LobSystemInstance
Dim returnValue As LobSystem
returnValue = instance.GetLobSystem
public LobSystem GetLobSystem ()
Exemple
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();
}
Voir aussi
Référence
LobSystemInstance, classe
Membres LobSystemInstance
Microsoft.Office.Server.ApplicationRegistry.MetadataModel, espace de noms