Udostępnij za pośrednictwem


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

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

See Also

Reference

CommerceContext Class

CommerceContext Members

Microsoft.CommerceServer.Runtime Namespace