Jaa


GetServiceVersion Method

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

Retrieves the web service version of the Marketing System Web service.

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

Syntax

'Declaration
Public Function GetServiceVersion As WebServiceVersion
'Usage
Dim instance As MarketingContext
Dim returnValue As WebServiceVersion

returnValue = instance.GetServiceVersion()
public WebServiceVersion GetServiceVersion()
public:
WebServiceVersion GetServiceVersion()
public function GetServiceVersion() : WebServiceVersion

Return Value

Type: Microsoft.CommerceServer..::.WebServiceVersion
A WebServiceVersion containing the major and minor version numbers of the Marketing System Web service. If the MarketingContext was initialized in Local mode instead of agent mode, then both the major and minor version numbers are returned as zero.

Remarks

A client of the MarketingContext should generally test the current WebServiceVersion for a compatible version when the client application using the MarketingContext in Agent mode is started. This ensures that version incompatibilities are detected early and the system doesn't break in unexpected ways. The MarketingContext Web service is versioned such that backward compatible changes result in a change in the minor version number. Incompatible changes result in a change to the major version number.

Permissions

See Also

Reference

MarketingContext Class

MarketingContext Members

Microsoft.CommerceServer.Marketing Namespace