LogCommerceEvent Method
Use this method to log a commerce event.
Namespace: Microsoft.CommerceServer.Runtime
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Shared Function LogCommerceEvent ( _
commerceEvent As BaseCommerceEvent _
) As LogStatus
'Usage
Dim commerceEvent As BaseCommerceEvent
Dim returnValue As LogStatus
returnValue = CommerceContext.LogCommerceEvent(commerceEvent)
public static LogStatus LogCommerceEvent(
BaseCommerceEvent commerceEvent
)
public:
static LogStatus LogCommerceEvent(
BaseCommerceEvent^ commerceEvent
)
public static function LogCommerceEvent(
commerceEvent : BaseCommerceEvent
) : LogStatus
Parameters
- commerceEvent
Type: Microsoft.CommerceServer.Runtime..::.BaseCommerceEvent
A commerce event object that derives from the base commerce event class.
Return Value
Type: Microsoft.CommerceServer.Runtime..::.LogStatus
The LogStatus of the commerce event.
Remarks
The LogStatus enumeration values of the logging function:
Ok - All values are valid.
NoTypeInfo - Type information for this object not obtained.
InvalidEvent - Event object is invalid, certain property values may be breaking validity constraints.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.