CommerceEventMemberAttribute Class (BCL)
Associates a Commerce-specific short name with the Commerce property.
This class is sealed.
System.Object
System.Attribute
**** Microsoft.CommerceServer.Runtime.CommerceEventMemberAttribute
Public Instance Constructor
Constructor | Description |
---|---|
CommerceEventMemberAttribute Constructor(String) | Creates a new instance of the CommerceEventMemberAttribute 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 |
---|---|
MemberName | Gets the Commerce-specific short name of the Commerce property that the instance of this attribute is associated with. |
TypeId (Inherited from System.Attribute) | Refer to the .NET Framework SDK documentation for the System.Attribute class. |
Remarks
The CommerceEventMemberAttribute class marks Commerce event class properties as Commerce properties and also associate a Commerce-specific short name with the particular event class.
For example:
[CommerceEvent("BSK")]
public class AddToBasketEvent : BaseCommerceEvent
{
[CommerceEventMember("PRID")]
public string ProductID
{
get
{
...
}
set
{
...
}
}
}
In the above example, the attribute is used to mark the ProductID property of the AddToBasketEvent class as a Commerce event property and also associates the Commerce-specific short name PRID with the property.
Requirements
Namespace: Microsoft.CommerceServer.Runtime
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Runtime.dll
Copyright © 2005 Microsoft Corporation.
All rights reserved.