public ActiveDirectoryForest GetADForest(string Server)
        {
            GetADForestRequest getADForestRequest = new GetADForestRequest();

            getADForestRequest.Server = Server;
            GetADForestResponse aDForest = this.Channel.GetADForest(getADForestRequest);

            return(aDForest.Forest);
        }
		internal ADEntity GetForest()
		{
			this.Init();
			GetADForestRequest getADForestRequest = new GetADForestRequest();
			GetADForestResponse aDForest = this._topoMgmt.GetADForest(this._sessionHandle, getADForestRequest);
			if (aDForest.Forest == null)
			{
				return null;
			}
			else
			{
				ActiveDirectoryForest forest = aDForest.Forest;
				ADEntity aDEntity = new ADEntity();
				aDEntity.Add("msDS-SPNSuffixes", forest.SPNSuffixes);
				aDEntity.Add("uPNSuffixes", forest.UPNSuffixes);
				aDEntity.Add("msDS-Behavior-Version", (ADForestMode)forest.ForestMode);
				aDEntity.Add("name", forest.Name);
				aDEntity.Add("RootDomain", forest.RootDomain);
				aDEntity.Add("ApplicationPartitions", forest.ApplicationPartitions);
				aDEntity.Add("CrossForestReferences", forest.CrossForestReferences);
				aDEntity.Add("Domains", forest.Domains);
				aDEntity.Add("GlobalCatalogs", forest.GlobalCatalogs);
				aDEntity.Add("Sites", forest.Sites);
				aDEntity.Add("DomainNamingMaster", forest.DomainNamingMaster);
				aDEntity.Add("SchemaMaster", forest.SchemaMaster);
				return aDEntity;
			}
		}
		GetADForestResponse Microsoft.ActiveDirectory.Management.IADTopologyManagement.GetADForest(ADSessionHandle handle, GetADForestRequest request)
		{
			GetADForestResponse aDForest = null;
			AdwsConnection internalHandle = this.GetInternalHandle(handle);
			if (internalHandle != null)
			{
				aDForest = internalHandle.GetADForest(request);
			}
			return aDForest;
		}
 GetADForestResponse Microsoft.ActiveDirectory.CustomActions.TopologyManagement.GetADForest(GetADForestRequest request)
 {
     return(base.Channel.GetADForest(request));
 }
 public Microsoft.ActiveDirectory.CustomActions.GetADForestResponse GetADForest(ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.GetADForestRequest request)
 {
     throw new NotImplementedException();
 }