CommerceEventAttribute Class (BCL)
These attributes identify the class as being a Commerce event and also associate a commerce specific short name with to the Commerce event.
This class is sealed.
System.Object
System.Attribute
**** Microsoft.CommerceServer.Runtime.CommerceEventAttribute
Public Instance Constructor
Constructor | Description |
---|---|
CommerceEventAttribute Constructor(String) | Creates a new instance of the CommerceEventAttribute class. |
Public Instance Methods
Method | Description |
---|---|
Equals(Object) (Inherited from System.Attribute) | Refer to the .NET Framework SDK documentation for the System.Attribute class. |
GetCustomAttributes (Inherited from System.Attribute) | Refer to the .NET Framework SDK documentation for the System.Attribute class. |
GetHashCode (Inherited from System.Attribute) | Refer to the .NET Framework SDK documentation for the System.Attribute class. |
IsDefaultAttribute (Inherited from System.Attribute) | Refer to the .NET Framework SDK documentation for the System.Attribute class. |
IsDefined (Inherited from System.Attribute) | Refer to the .NET Framework SDK documentation for the System.Attribute class. |
Match(Object) (Inherited from System.Attribute) | Refer to the .NET Framework SDK documentation for the System.Attribute class. |
Public Instance Properties
Property | Description |
---|---|
ClassName | Gets the Commerce Server–specific short name of the class that this instance of the attribute is associated with. |
TypeId (Inherited from System.Attribute) | Refer to the .NET Framework SDK documentation for the System.Attribute class. |
Remarks
The CommerceEventAttribute class marks Commerce event classes and associates a Commerce Server–specific short name with the particular event class.
For example:
[CommerceEvent("BSK")]
public class AddToBasketEvent : BaseCommerceEvent
In the previous example, the attribute is used to mark the AddToBasketEvent class as a Commerce event class and associate the Commerce Server–specific short name BSK with the class.
Requirements
Namespace: Microsoft.CommerceServer.Runtime
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Runtime.dll
Copyright © 2005 Microsoft Corporation.
All rights reserved.