Partilhar 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.Orders
Assembly:  Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.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
Always returns false.

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 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 ShippingMethodDataSet or developing your own control incorporating the ShippingMethodDataSet.

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

Permissions

See Also

Reference

ShippingMethodDataSet Class

ShippingMethodDataSet Members

Microsoft.CommerceServer.Orders Namespace