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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.