Share via


ShouldSerializeRelations Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets a value indicating whether Relations property should be persisted.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Protected Overrides Function ShouldSerializeRelations As Boolean
'Usage
Dim returnValue As Boolean

returnValue = Me.ShouldSerializeRelations()
protected override bool ShouldSerializeRelations()
protected:
virtual bool ShouldSerializeRelations() override
protected override function ShouldSerializeRelations() : boolean

Return Value

Type: System..::.Boolean
false in all cases.

Remarks

The ShouldSerializeRelations method is a method that returns a Boolean value informing the serializer whether a property has changed from its default value.

This ShouldSerialize method is provided because the Relations property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the DiscountPrioritySet or developing your own control incorporating the DiscountPrioritySet.

For more information, see Defining Default Values with the ShouldSerialize and Reset Methods.

Permissions

See Also

Reference

DiscountPrioritySet Class

DiscountPrioritySet Members

Microsoft.CommerceServer.Marketing Namespace