コード例 #1
0
        public HighConfidenceResultsDataSourceView(HighConfidenceResultsDataSource dataSourceOwner, string viewName)
            : base(dataSourceOwner, viewName)
        {
            if (dataSourceOwner == null)
            {
                throw new ArgumentNullException("dataSourceOwner");
            }
            HighConfidenceResultsDataSource source = base.DataSourceOwner as HighConfidenceResultsDataSource;

            if (source == null)
            {
                throw new ArgumentOutOfRangeException();
            }
            HighConfidencePartialMatchWebPart parentWebpart = source.ParentWebpart as HighConfidencePartialMatchWebPart;

            if (parentWebpart == null)
            {
                throw new ArgumentOutOfRangeException();
            }
            base.QueryManager = SharedQueryManager.GetInstance(parentWebpart.Page, parentWebpart.QueryID).QueryManager;
        }
コード例 #2
0
 // Methods
 public HighConfidenceResultsDataSource(HighConfidencePartialMatchWebPart parentWebPart)
     : base(parentWebPart)
 {
     base.View = new HighConfidenceResultsDataSourceView(this, HighConfidenceViewName);
 }