Jaa


GetXml Method

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

Gets the XML representation of the current instance.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Function GetXml As String
'Usage
Dim instance As OrderGroup
Dim returnValue As String

returnValue = instance.GetXml()
public string GetXml()
public:
String^ GetXml()
public function GetXml() : String

Return Value

Type: System..::.String
OrderMapping.exe can be used to generate the XSD for the XML that is generated by this method.

Exceptions

Exception Condition
UnsupportedTypeException

If a property of an unsupported type is found.

InvalidOperationException

The order group has been disposed, either directly or by conversion from an OrderTemplate to a Basket or a Basket to a PurchaseOrder.

Remarks

Gets the XML representation of the current instance.

You can define a custom class and then add an instance of the custom class to an OrderGroup object by using a weakly-typed indexer property. Commerce Server can store and retrieve these custom objects. However, the XML that the GetXml method returns does not include the serialized representation of these custom objects.

Permissions

See Also

Reference

OrderGroup Class

OrderGroup Members

Microsoft.CommerceServer.Runtime.Orders Namespace