CommerceContext Class (BCL)
The primary class used to interface with Commerce Server.
This class is sealed.
System.Object
Microsoft.CommerceServer.Runtime.CommerceContext
Public Instance Methods
Method | Description |
---|---|
Dispose | Releases resources used by this object. |
GetCatalogsForUser | Gets the list of catalogs for the current user. |
LogCommerceEvent(BaseCommerceEvent) | Logs a Commerce event. |
RegisterDisposable(Object) | Registers objects that can be disposed of early using the Dispose method. Only page-scoped objects should be registered, these objects will become invalid after the request is done processing and the instance of the CommerceContext class is disposed. |
Public Instance Properties
Property | Description |
---|---|
AuthenticationInfo | Gets the AuthenticationInfo class instance that was created by the CommerceAuthenticationModule class. |
Caches | Gets the collection of caches configured for the site. |
CatalogSystem | Gets or sets the default CatalogContext class for use on the site. |
DebugContext | Gets the debug mode for the DebugContext class. |
OrderSystem | Gets or sets the default OrderContext class for use on the site. |
OrganizationProfile | Gets or sets the organization profile for the current user. |
Pipelines | Gets the available pipelines collection. |
ProfileSystem | Gets or sets the default ProfileContext object for use on the site. |
QueryStringBuilder | Gets the default QueryStringBuilder object for use on the site. |
Resources | Gets the collection of Commerce Server resources configured for the site. |
SiteName | Gets the Commerce Server site name. |
TargetingSystem | Gets the TargetingSytemInfo object for this CommerceContext class instance. |
UserId | Gets or sets the user ID (user profile primary key) for the current user. |
UserProfile | Gets or sets the UserObject profile for the current user. |
Public Static (Shared) Properties
Property | Description |
---|---|
Current | Retrieves the CommerceContext object for the current request. |
Requirements
Namespace: Microsoft.CommerceServer.Runtime
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Runtime.dll
See Also
Example Code for the Microsoft.CommerceServer.Runtime Namespace
Example Code for the Microsoft.CommerceServer.Runtime.Catalog Namespace
Example Code for the Microsoft.CommerceServer.Runtime.Orders Namespace
Example Code for the Microsoft.CommerceServer.Runtime.Pipelines Namespace
Example Code for the Microsoft.CommerceServer.Runtime.Profiles Namespace
Example Code for the Microsoft.CommerceServer.Runtime.Targeting Namespace
Copyright © 2005 Microsoft Corporation.
All rights reserved.