CommerceEventMemberAttribute Class
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Attributes that marks a Commerce Server-specific short name with a Commerce Server property. This class cannot be inherited.
Namespace: Microsoft.CommerceServer.Runtime
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
<ComVisibleAttribute(False)> _
<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class CommerceEventMemberAttribute _
Inherits Attribute
'Usage
Dim instance As CommerceEventMemberAttribute
[ComVisibleAttribute(false)]
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
public sealed class CommerceEventMemberAttribute : Attribute
[ComVisibleAttribute(false)]
[AttributeUsageAttribute(AttributeTargets::Property, AllowMultiple = true, Inherited = true)]
public ref class CommerceEventMemberAttribute sealed : public Attribute
public final class CommerceEventMemberAttribute extends Attribute
Remarks
The CommerceEventMemberAttribute class marks Commerce Server event class properties as Commerce Server properties and also associates a Commerce Server-specific short name with the particular event class.
In the example, the attribute is used to mark the ProductID property of the AddToBasketEvent class as a Commerce Server event property and to associate the Commerce Server-specific short name PRID with the property.
Examples
[CommerceEvent("BSK")]
public class AddToBasketEvent : BaseCommerceEvent
{
[CommerceEventMember("PRID")]
public string ProductID
{
get
{
...
}
set
{
...
}
}
}
Inheritance Hierarchy
System..::.Object
System..::.Attribute
Microsoft.CommerceServer.Runtime..::.CommerceEventMemberAttribute
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.