コード例 #1
0
        public void UpdateCustomProperties(AspNetCore.ReportingServices.ReportRendering.CustomPropertyCollection collection)
        {
            int count = this.m_list.Count;

            for (int i = 0; i < count; i++)
            {
                string name  = null;
                object value = null;
                if (collection != null)
                {
                    collection.GetNameValue(i, out name, out value);
                }
                this.m_list[i].Update(name, value, TypeCode.Empty);
            }
        }
コード例 #2
0
 public CustomPropertyCollection(RenderingContext renderingContext, AspNetCore.ReportingServices.ReportRendering.CustomPropertyCollection collection)
 {
     if (collection == null)
     {
         this.m_list = new List <CustomProperty>();
     }
     else
     {
         int count = collection.Count;
         this.m_list = new List <CustomProperty>(count);
         for (int i = 0; i < count; i++)
         {
             AspNetCore.ReportingServices.ReportProcessing.ExpressionInfo nameExpr  = default(AspNetCore.ReportingServices.ReportProcessing.ExpressionInfo);
             AspNetCore.ReportingServices.ReportProcessing.ExpressionInfo valueExpr = default(AspNetCore.ReportingServices.ReportProcessing.ExpressionInfo);
             string name  = default(string);
             object value = default(object);
             collection.GetNameValueExpressions(i, out nameExpr, out valueExpr, out name, out value);
             CustomProperty customProperty = new CustomProperty(renderingContext, nameExpr, valueExpr, name, value, TypeCode.Empty);
             this.m_list.Add(customProperty);
             this.AddPropToLookupTable(name, customProperty);
         }
     }
 }