Exemple #1
0
        public static DomainCollection Get_ForestDomain(Args_Get_ForestDomain args = null)
        {
            if (args == null)
            {
                args = new Args_Get_ForestDomain();
            }

            var Arguments = new Args_Get_Forest
            {
                Forest     = args.Forest,
                Credential = args.Credential
            };

            var ForestObject = GetForest.Get_Forest(Arguments);

            if (ForestObject != null)
            {
                return(ForestObject.Forest?.Domains);
            }
            return(null);
        }
 public static DomainCollection Get_NetForestDomain(Args_Get_ForestDomain args = null)
 {
     return(GetForestDomain.Get_ForestDomain(args));
 }