Esempio n. 1
0
 /// <summary>
 /// Creates a new refiner info
 /// </summary>
 /// <param name="managedPropertyName">The managed property name</param>
 /// <param name="type">The type of the refiner</param>
 /// <param name="displayTemplateJsFile">The display template url (relative site collection JavaScript file)</param>
 /// <param name="displayName">The display name which will appear in the refinement panel web part</param>
 /// <param name="maxNumberRefinementOptions">The maximum number of refinements</param>
 /// <param name="sortBy">The sort by</param>
 /// <param name="sortOrder">The sort order</param>
 /// <param name="intervals">The intervals (only if it is a DateTime)</param>
 /// <param name="useDefaultDateIntervals">Specifies if the refiner must use the default intervals (only in the case of DateTime)</param>
 public RefinerInfo(
     string managedPropertyName,
     RefinerType type, 
     string displayTemplateJsFile,
     string displayName, 
     int maxNumberRefinementOptions, 
     RefinerSortBy sortBy,
     RefinerSortOrder sortOrder, 
     string intervals, 
     bool useDefaultDateIntervals)
 {
     this.ManagedPropertyName = managedPropertyName;
     this.RefinerType = type;
     this.DisplayTemplateJsLocation = displayTemplateJsFile;
     this.DisplayName = displayName;
     this.MaxNumberRefinementOptions = maxNumberRefinementOptions;
     this.SortBy = sortBy;
     this.SortOrder = sortOrder;
     this.Intervals = intervals;
     this.UseDefaultDateIntervals = useDefaultDateIntervals;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new refiner info
 /// </summary>
 /// <param name="managedPropertyName">The managed property name</param>
 /// <param name="type">The type of the refiner</param>
 /// <param name="displayTemplateJsFile">The display template url (relative site collection JavaScript file)</param>
 /// <param name="displayName">The display name which will appear in the refinement panel web part</param>
 /// <param name="maxNumberRefinementOptions">The maximum number of refinements</param>
 /// <param name="sortBy">The sort by</param>
 /// <param name="sortOrder">The sort order</param>
 /// <param name="intervals">The intervals (only if it is a DateTime)</param>
 /// <param name="useDefaultDateIntervals">Specifies if the refiner must use the default intervals (only in the case of DateTime)</param>
 public RefinerInfo(
     string managedPropertyName,
     RefinerType type,
     string displayTemplateJsFile,
     string displayName,
     int maxNumberRefinementOptions,
     RefinerSortBy sortBy,
     RefinerSortOrder sortOrder,
     string intervals,
     bool useDefaultDateIntervals)
 {
     this.ManagedPropertyName        = managedPropertyName;
     this.RefinerType                = type;
     this.DisplayTemplateJsLocation  = displayTemplateJsFile;
     this.DisplayName                = displayName;
     this.MaxNumberRefinementOptions = maxNumberRefinementOptions;
     this.SortBy    = sortBy;
     this.SortOrder = sortOrder;
     this.Intervals = intervals;
     this.UseDefaultDateIntervals = useDefaultDateIntervals;
 }