IAdmManagedDomainLyncOps
The IAdmManagedDomainLyncOps interface provides information about Skype for Business Registrar pools available in the managed domain.
Inheritance: IUnknown
Methods
-
Method
-
Description
-
FindAvailableLyncPools()
-
Returns an array of Skype for Business Registrar pools available in the managed domain.
Details
FindAvailableLyncPools()
Returns an array of Skype for Business Registrar pools available in the managed domain.
IAdmLyncPoolInfo[] FindAvailableLyncPools()
Examples
The following code sample outputs Skype for Business Registrar pools available in a managed domain.
- PowerShell
-
[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi") # Connect to the Adaxes service $admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace" $admService = $admNS.GetServiceDirectly("localhost") # Bind to the managed domain $domainName = "example.com" $managedDomainsPath = $admService.Backend.GetConfigurationContainerPath("ManagedDomains") $managedDomainsPathObj = New-Object "Softerra.Adaxes.Adsi.AdsPath" $managedDomainsPath $managedDomainPath = $managedDomainsPathObj.CreateChildPath("DC=$domainName") $managedDomain = $admService.OpenObject($managedDomainPath, $NULL, $NULL, 0) # Retrieve registrar pools $registrarPools = $managedDomain.FindAvailableLyncPools() Write-Host "Registrar pools:" foreach ($registrarPool in $registrarPools) { Write-Host "`t" $registrarPool.DisplayName }
- C#
-
using System; using Softerra.Adaxes.Adsi; using Softerra.Adaxes.Interop.Adsi.PersistentObjects; class Program { static void Main(string[] args) { // Connect to the Adaxes service AdmNamespace adsNS = new AdmNamespace(); IAdmService admService = adsNS.GetServiceDirectly("localhost"); // Bind to the domain const String domainName = "example.com"; string managedDomainsPath = admService.Backend.GetConfigurationContainerPath( "ManagedDomains"); AdsPath managedDomainsPathObj = new AdsPath(managedDomainsPath); AdsPath managedDomainPath = managedDomainsPathObj.CreateChildPath("DC=" + domainName); IAdmManagedDomainLyncOps managedDomain = (IAdmManagedDomainLyncOps)admService.OpenObject( managedDomainPath.ToString(), null, null, 0); // Retrieve registrar pools IAdmLyncPoolInfo[] registrarPools = managedDomain.FindAvailableLyncPools(); Console.WriteLine("Registrar pools:"); foreach (IAdmLyncPoolInfo registrarPool in registrarPools) { Console.WriteLine("\t" + registrarPool.DisplayName); } } }
Requirements
Minimum required version: 2018.1