Share via


ProfileContext Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets and sets the default ProfileContext instance created by the module.

Namespace:  Microsoft.CommerceServer.Runtime.Profiles
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Shared Property ProfileContext As ProfileContext
'Usage
Dim value As ProfileContext

value = CommerceProfileModule.ProfileContext

CommerceProfileModule.ProfileContext = value
public static ProfileContext ProfileContext { get; set; }
public:
static property ProfileContext^ ProfileContext {
    ProfileContext^ get ();
    void set (ProfileContext^ value);
}
public static function get ProfileContext () : ProfileContext
public static function set ProfileContext (value : ProfileContext)

Property Value

Type: Microsoft.CommerceServer.Runtime.Profiles..::.ProfileContext
The default ProfileContext instance created by the module.

Remarks

The value will be nullNothingnullptra null reference (Nothing in Visual Basic) if the CommerceProfileModule was not configured in web.config.

ASP.Net pages should reference this via the CommerceContext.Current.ProfileSystem property.

Permissions

See Also

Reference

CommerceProfileModule Class

CommerceProfileModule Members

Microsoft.CommerceServer.Runtime.Profiles Namespace