Example #1
0
        public MemberCollection GetMembers(long start, long count, string[] properties) //, params MemberFilter[] filters)
        {
            if (_obj != null)
            {
                MemberCollection coll = new MemberCollection();
                foreach (Microsoft.AnalysisServices.AdomdClient.Member member in _obj.GetMembers(start, count, properties))
                {
                    coll.Add(new Member(member));
                }
                return(coll);
            }

            MemberCollection f()
            {
                MemberCollection coll = new MemberCollection();

                foreach (ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.Member member in _objExcel.GetMembers(start, count, properties))
                {
                    coll.Add(new Member(member));
                }
                return(coll);
            }

            return(f());
        }
Example #2
0
 public MemberCollection GetMembers(long start, long count, string[] properties, params MemberFilter[] filters)
 {
     if (_obj != null)
     {
         MemberCollection coll = new MemberCollection();
         foreach (Microsoft.AnalysisServices.AdomdClient.Member member in _obj.GetMembers(start, count, properties, new Microsoft.AnalysisServices.AdomdClient.MemberFilter[] { }))
         {
             coll.Add(new Member(member));
         }
         return(coll);
     }
     else
     {
         ExcelAdoMdConnections.ReturnDelegate <MemberCollection> f = delegate
         {
             MemberCollection coll = new MemberCollection();
             foreach (ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.Member member in _objExcel.GetMembers(start, count, properties, new ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.MemberFilter[] { }))
             {
                 coll.Add(new Member(member));
             }
             return(coll);
         };
         return(f());
     }
 }