DW9 API Cheatsheet
The following namespace changes have been made in Dynamicweb.dll for Dynamicweb 9.0.
Changes to commonly used API calls
Other assorted changes:
Dynamicweb 8 |
Dynamicweb 9 |
Dynamicweb.Base.GetGs(key) |
Dynamicweb.Configuration.SystemConfiguration.Instance.GetValue(key) |
Dynamicweb.Base.ChkString(object value) |
Dynamicweb.Core.Converter.ToString(object value) |
Dynamicweb.Base.ChkInteger(object value) |
Dynamicweb.Core.Converter.ToInt32(object value) |
Dynamicweb.Base.ChkBoolean(object value) |
Dynamicweb.Core.Converter.ToBoolean(object value) |
Dynamicweb.Base.ChkDate(value As Object) |
Dynamicweb.Core.Converter.ToDateTime(object value) |
Dynamicweb.Base.ChkDouble(value As Object) |
Dynamicweb.Core.Converter.ToDouble(object value) |
Dynamicweb.Base.ChkLong(value As Object) |
Dynamicweb.Core.Converter.ToLong(object value) |
Dynamicweb.Base.ChkNumber(value As Object) |
Dynamicweb.Core.Converter.ToInt32(object value) |
Dynamicweb.Base.AddToQueryString |
Dynamicweb.Environment.Helpers.LinkHelper.AddToQueryString |
Dynamicweb.Base.ReplaceQueryString |
Dynamicweb.Environment.Helpers.LinkHelper.ReplaceQueryString |
Dynamicweb.Base.ReadTextFile |
Dynamicweb.Core.Helpers.TextFileHelper.ReadTextFile |
Dynamicweb.Base.WriteTextFile |
Dynamicweb.Core.Helpers.TextFileHelper.WriteTextFile |
Dynamicweb.Base.IsModuleInstalled |
Security.UserManagement.License.IsModuleInstalled |
Dynamicweb.Input.FormatBoolean |
Dynamicweb.Core.Converter.ToBoolean(object value) |
Dynamicweb.Input.FormatInteger |
Dynamicweb.Core.Converter.ToInt32(object value) |
Dynamicweb.Input.FormatInteger64 |
Dynamicweb.Core.Converter.ToLong(object value) |
Dynamicweb.Input.FormatLong |
Dynamicweb.Core.Converter.ToLong(object value) |
Dynamicweb.Input.FormatDate |
Dynamicweb.Core.Converter.ToDateTime(object value) |
Dynamicweb.Input.FormatDouble |
Dynamicweb.Core.Converter.ToDouble(object value) |
Dynamicweb.Extensibility.Subscribe |
Dynamicweb.Extensibility.Notifications.Subscribe |
Requesting values |
Request.[Method] requires the Dynamicweb.Environment namespace |
Dynamicweb.Base.Request(string key) |
Dynamicweb.Context.Current.Request.GetString(string key) |
Dynamicweb.Base.RequestInteger(string key) |
Dynamicweb.Context.Current.Request.GetInteger(string key) |
Dynamicweb.Base.RequestBoolean(string key) |
Dynamicweb.Context.Current.Request.GetBoolean(string key) |
Dynamicweb.Base.RequestDate(string key) |
Dynamicweb.Context.Current.Request.GetDate(string key) |
The same methods are applied for the Dynamicweb.Input.Request: |
|
Dynamicweb.Base.Input.RequestXXX |
Dynamicweb.Context.Current.RequestXXX |
Other |
|
Dynamicweb.ExecutingContext.IsFrontEnd |
Dynamicweb.Environment.ExecutingContext.IsFrontEnd |
Dynamicweb.Frontend.Pageview.User.LoggedIn |
Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() |
Dynamicweb.Content.Items.ItemManager |
Dynamicweb.Extensibility.ServiceLocator.Current.GetItemService() |
GetPageService() is an extension method (requires a "using Dynamicweb.Content" statement) |
|
Dynamicweb.Content.Page.GetPageById(Int32 id) |
Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(Int32 id) |
Dynamicweb.Frontend.Page.FindPage(Int32 Id) |
Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(Int32 id) |
Dynamicweb.Content.Page.GetPageById(Int32 id) |
Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(Int32 id) |
Dynamicweb.Content.Area |
Dynamicweb.Frontend.PageView.Current.Area |
Dynamicweb.Content.Area.get_Value(String areaPropertyName) |
Dynamicweb.Frontend.PageView.Current.Area.PropertyName For example: Dynamicweb.Frontend.PageView.Current.Area.Active |
Moved
These namespaces remain unchanged, but have been moved to package Dynamicweb.Analytics (and various other packages, such as Dynamicweb.Ecommerce, as necessary).
- Dynamicweb.Analytics
- Dynamicweb.Analytics.Configuration
- Dynamicweb.Analytics.Experiments
- Dynamicweb.Analytics.Goals
- Dynamicweb.Analytics.Leads
- Dynamicweb.Analytics.Leads.LeadsStatistic
- Dynamicweb.Analytics.Links
- Dynamicweb.Analytics.Model
- Dynamicweb.Analytics.Model.Converters
- Dynamicweb.Analytics.Notifications
- Dynamicweb.Analytics.Profiles
- Dynamicweb.Analytics.Profiles.Integration
- Dynamicweb.Analytics.Profiles.Recognition
- Dynamicweb.Analytics.Queries
- Dynamicweb.Analytics.Reports
- Dynamicweb.Analytics.Reports.Expressions
- Dynamicweb.Analytics.Reports.Expressions.Sql
- Dynamicweb.Analytics.Reports.Filtering
- Dynamicweb.Analytics.Reports.Funnels
- Dynamicweb.Analytics.Reports.Google
- Dynamicweb.Analytics.Reports.Searches
- Dynamicweb.Analytics.Reports.Specialized
- Dynamicweb.Analytics.Seo
- Dynamicweb.Analytics.Seo.AdWords
- Dynamicweb.Analytics.Utilities
These namespaces have been moved to the Dynamicweb.Mailing package:
- Dynamicweb.EmailMessaging
- Dynamicweb.EmailMessaging.MessageDeliveryProviders
Moved to Dynamicweb.DataManagement package and namespace:
- Dynamicweb.Modules.DataManagement
- Dynamicweb.Modules.DataManagement.Connections.Settings
- Dynamicweb.Modules.DataManagement.Connections.Settings.Access
- Dynamicweb.Modules.DataManagement.Connections.Settings.MsSql
- Dynamicweb.Modules.DataManagement.Query
Moved to Dynamicweb.Security package, to Dynamicweb.Security.UserManagement.xxx namespace):
- Dynamicweb.Modules.UserManagement.ExternalAuthentication
- Dynamicweb.Modules.UserManagement.Indexing
- Dynamicweb.Modules.UserManagement.Synchronization
Other assorted changes:
Namespace |
Change |
Dynamicweb.Content.Items.Activation.Pages |
Content moved to parent namespace |
Dynamicweb.Content.Items.Activation.Placeholders |
Content moved to parent namespace |
Dynamicweb.Content.Validation |
Content moved to content.files.Information |
Dynamicweb.Extensibility.ScheduledTaskAddins |
Moved to Dynamicweb.Scheduling namespace in Dynamicweb.Scheduling package |
Dynamicweb.Extensibility.Searching.eCommerce |
Moved to Dynamicweb.Ecommerce |
Dynamicweb.ImageHandling |
Moved to Dynamicwb.Imaging package, to the Dynamicweb.imaging.imagehandling namespace |
Dynamicweb.Information |
Content moved to Dynamicweb.Files.Information |
Dynamicweb.Integration |
Moved to Dynamicweb.DataInteration.Integration |
Dynamicweb.Modules.Common.CustomFields.News |
Moved to Dynamicweb.News package, to Dynamicweb.News.Common.Frontend |
Dynamicweb.Modules.Common.Frontend |
Moved to Dynamicweb.News package, to Dynamicweb.News.Common.Frontend |
Dynamicweb.Notifications |
Distributed to relevant modules!) |
Dynamicweb.Dates |
Moved to Dynamicweb.Core.Helpers.DateHelper |
Moved & Renamed
These namespaces have been moved to the Dynamicweb.Ecommerce package – and have been renamed Dynamicweb.Ecommerce.:
Old namespace |
New namespace |
Dynamicweb.eCommerce.Assortments |
Dynamicweb.Ecommerce.Assortments |
Dynamicweb.eCommerce.CalculatedFields |
Dynamicweb.Ecommerce.CalculatedFields |
Dynamicweb.eCommerce.Cart |
Dynamicweb.Ecommerce.Cart |
Dynamicweb.eCommerce.Common |
Dynamicweb.Ecommerce.Common |
Dynamicweb.eCommerce.Common.eCom7 |
Dynamicweb.Ecommerce.Common.eCom7 |
Dynamicweb.eCommerce.ContextRenderers |
Dynamicweb.Ecommerce.ContextRenderers |
Dynamicweb.eCommerce.CustomerCenter |
Dynamicweb.Ecommerce.CustomerCenter |
Dynamicweb.eCommerce.CustomerCenter.ShowList |
Dynamicweb.Ecommerce.CustomerCenter.ShowList |
Dynamicweb.eCommerce.Discounts |
Dynamicweb.Ecommerce.Discounts |
Dynamicweb.eCommerce.Frontend |
Dynamicweb.Ecommerce.Frontend |
Dynamicweb.eCommerce.Frontend.Cart |
Dynamicweb.Ecommerce.Frontend.Cart |
Dynamicweb.eCommerce.Frontend.CatalogPublishing |
Dynamicweb. Ecommerce.Frontend.CatalogPublishing |
Dynamicweb.eCommerce.Frontend.ContextRenderers |
Dynamicweb. Ecommerce.Frontend.ContextRenderers |
Dynamicweb.eCommerce.GiftCards |
Dynamicweb. Ecommerce.GiftCards |
Dynamicweb.eCommerce.Indexing |
Dynamicweb. Ecommerce.Indexing |
Dynamicweb.eCommerce.Integration |
Dynamicweb. Ecommerce.Integration |
Dynamicweb.eCommerce.Integration.C5 |
Dynamicweb. Ecommerce.Integration.C5 |
Dynamicweb.eCommerce.Integration.CustomerCenter |
Dynamicweb. Ecommerce.Integration.CustomerCenter |
Dynamicweb.eCommerce.International |
Dynamicweb. Ecommerce.International |
Dynamicweb.eCommerce.Loyalty |
Dynamicweb. Ecommerce.Loyalty |
Dynamicweb.eCommerce.Orders |
Dynamicweb. Ecommerce.Orders |
Dynamicweb.eCommerce.Orders.AddressValidation |
Dynamicweb. Ecommerce.Orders.AddressValidation |
Dynamicweb.eCommerce.Orders.Discounts |
Dynamicweb. Ecommerce.Orders.Discounts |
Dynamicweb.eCommerce.Orders.Gateways |
Dynamicweb. Ecommerce.Orders.Gateways |
Dynamicweb.eCommerce.Orders.ReturnMerchandiseAuthorization |
Dynamicweb. Ecommerce.Orders.ReturnMerchandiseAuthorization |
Dynamicweb.eCommerce.Orders.SalesDiscounts |
Dynamicweb. Ecommerce.Orders.SalesDiscounts |
Dynamicweb.eCommerce.Orders.Validation |
Dynamicweb. Ecommerce.Orders.Validation |
Dynamicweb.eCommerce.Orders.Validation.Rules |
Dynamicweb. Ecommerce.Orders.Validation.Rules |
Dynamicweb.eCommerce.Prices |
Dynamicweb. Ecommerce.Prices |
Dynamicweb.eCommerce.Products |
Dynamicweb. Ecommerce.Products |
Dynamicweb.eCommerce.Products.Categories |
Dynamicweb. Ecommerce.Products.Categories |
Dynamicweb.eCommerce.Products.Taxes |
Dynamicweb. Ecommerce.Products.Taxes |
Dynamicweb.eCommerce.Searching |
Dynamicweb. Ecommerce.Searching |
Dynamicweb.eCommerce.Searching.Filters |
Dynamicweb. Ecommerce.Searching.Filters |
Dynamicweb.eCommerce.Searching.Index |
Dynamicweb. Ecommerce.Searching.Index |
Dynamicweb.eCommerce.Shops |
Dynamicweb. Ecommerce.Shops |
Dynamicweb.eCommerce.Statistics |
Dynamicweb. Ecommerce.Statistics |
Dynamicweb.eCommerce.Stocks |
Dynamicweb. Ecommerce.Stocks |
Dynamicweb.eCommerce.Synchronization |
Dynamicweb. Ecommerce.Synchronization |
Dynamicweb.eCommerce.UserPermissions |
Dynamicweb. Ecommerce.UserPermissions |
Dynamicweb.eCommerce.Variants |
Dynamicweb. Ecommerce.Variants |
Removed
The following namespaces have been removed for DW9:
- Dynamicweb.Backend
- Dynamicweb.BingSuggestionAPIwebSrv
- Dynamicweb.Clustering
- Dynamicweb.com.google.adwords
- Dynamicweb.Content.Gallery
- Dynamicweb.Content.Workflow.Campaign
- Dynamicweb.dk.dynamicweb.geolocation
- Dynamicweb.Frontend.Formatters
- Dynamicweb.Frontend.Formatters.Specialized
- Dynamicweb.Frontend.LegacyModules.Audit
- Dynamicweb.Frontend.LegacyModules.Calendar
- Dynamicweb.Frontend.LegacyModules.Calender
- Dynamicweb.Frontend.LegacyModules.Cartv2
- Dynamicweb.Frontend.LegacyModules.Ecards
- Dynamicweb.Frontend.LegacyModules.Faq
- Dynamicweb.Frontend.LegacyModules.Form
- Dynamicweb.Frontend.LegacyModules.Forum
- Dynamicweb.Frontend.LegacyModules.ImageGallery
- Dynamicweb.Frontend.LegacyModules.KeywordFinder
- Dynamicweb.Frontend.LegacyModules.MediaDB
- Dynamicweb.Frontend.LegacyModules.Metadata
- Dynamicweb.Frontend.LegacyModules.News
- Dynamicweb.Frontend.LegacyModules.Newsletter
- Dynamicweb.Frontend.LegacyModules.NewsletterExtended
- Dynamicweb.Frontend.LegacyModules.Poll
- Dynamicweb.Frontend.LegacyModules.RSSFeed
- Dynamicweb.Frontend.LegacyModules.Searchv1
- Dynamicweb.Frontend.LegacyModules.Shop
- Dynamicweb.Frontend.LegacyModules.Sitemap
- Dynamicweb.Frontend.LegacyModules.SitemapV2
- Dynamicweb.Frontend.LegacyModules.StatisticsExtended
- Dynamicweb.Frontend.LegacyModules.Tagwall
- Dynamicweb.Frontend.NewsletterSubscription
- Dynamicweb.Google
- Dynamicweb.Integration.Reporting
- Dynamicweb.Modules.Common.CustomFields
- Dynamicweb.Modules.Common.SystemFields
- Dynamicweb.Modules.UserManagement.ADSI
- Dynamicweb.net.bing.api
- Dynamicweb.Rendering.Colors
- Dynamicweb.Rendering.Service
- Dynamicweb.Rendering.Service.SystemRenderers
- Dynamicweb.SystemTools.Context
- Dynamicweb.SystemTools.ScheduledTasks
- Dynamicweb.Templatev2
Unchanged
The following namespaces are unchanged:
- Dynamicweb
- Dynamicweb.Content
- Dynamicweb.Content.Caching
- Dynamicweb.Content.Caching.Clustering
- Dynamicweb.Content.Commenting
- Dynamicweb.Content.Files
- Dynamicweb.Content.Files.FileType
- Dynamicweb.Content.Files.LinkSearch
- Dynamicweb.Content.Files.Metadata
- Dynamicweb.Content.Items
- Dynamicweb.Content.Items.Activation
- Dynamicweb.Content.Items.Annotations
- Dynamicweb.Content.Items.Editors
- Dynamicweb.Content.Items.Metadata
- Dynamicweb.Content.Items.Queries
- Dynamicweb.Content.Items.Rendering
- Dynamicweb.Content.Items.Searching
- Dynamicweb.Content.Management
- Dynamicweb.Content.Social
- Dynamicweb.Content.Social.Adapters
- Dynamicweb.Content.Social.Metrics
- Dynamicweb.Content.Versioning
- Dynamicweb.Content.Workflow
- Dynamicweb.Content.Workflow.Automation
- Dynamicweb.dk.dynamicsystems.webservice
- Dynamicweb.dk.infodirekt.search
- Dynamicweb.Frontend
- Dynamicweb.Frontend.DirectPath
- Dynamicweb.Frontend.NavigationProviders
- Dynamicweb.Frontend.UrlProviders
- Dynamicweb.Modules
- Dynamicweb.Modules.Common
- Dynamicweb.Modules.Repositories
- Dynamicweb.Modules.Searching.Rules
- Dynamicweb.Modules.Searching.SmartSearch
- Dynamicweb.Modules.UserManagement
- Dynamicweb.Rendering
- Dynamicweb.Rendering.Designer
- Dynamicweb.Rendering.Translation
- Dynamicweb.SystemTools
- Dynamicweb.SystemTools.WebPageAnalyze
- Dynamicweb.Extensibility*
- Dynamicweb.Extensibility.Editors
- Dynamicweb.Extensibility.Provider
- Dynamicweb.Extensibility.Searching
* Dynamicweb.Extensibility remains in the Dynamicweb package, but module specific bits have been moved (such as productPicker editor -> Dynamicweb.Ecommerce).