예제 #1
0
 public virtual DataSourceView GetView(string viewName)
 {
     if (this.Provider == null)
     {
         throw new HttpException(System.Web.SR.GetString("SiteMapDataSource_ProviderNotFound", new object[] { this.SiteMapProvider }));
     }
     if (this._dataSourceView == null)
     {
         this._dataSourceView = SiteMapNodeCollection.ReadOnly(this.GetPathNodeCollection(viewName)).GetDataSourceView(this, string.Empty);
     }
     return(this._dataSourceView);
 }
예제 #2
0
        public virtual DataSourceView GetView(string viewName)
        {
            if (Provider == null)
            {
                throw new HttpException(SR.GetString(SR.SiteMapDataSource_ProviderNotFound, SiteMapProvider));
            }

            if (_dataSourceView == null)
            {
                _dataSourceView = SiteMapNodeCollection.ReadOnly(GetPathNodeCollection(viewName)).GetDataSourceView(this, String.Empty);
            }

            return(_dataSourceView);
        }
 public virtual DataSourceView GetView(string viewName)
 {
     if (this.Provider == null)
     {
         throw new HttpException(System.Web.SR.GetString("SiteMapDataSource_ProviderNotFound", new object[] { this.SiteMapProvider }));
     }
     if (this._dataSourceView == null)
     {
         this._dataSourceView = SiteMapNodeCollection.ReadOnly(this.GetPathNodeCollection(viewName)).GetDataSourceView(this, string.Empty);
     }
     return this._dataSourceView;
 }
        public virtual DataSourceView GetView(string viewName) {
            if (Provider == null)
                throw new HttpException(SR.GetString(SR.SiteMapDataSource_ProviderNotFound, SiteMapProvider));

            if (_dataSourceView == null) {
                _dataSourceView = SiteMapNodeCollection.ReadOnly(GetPathNodeCollection(viewName)).GetDataSourceView(this, String.Empty);

            }

            return _dataSourceView;
        }