FromXml Method

Creates an order group from an XML stream.

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

Syntax

'Declaration
Public Shared Function FromXml ( _
    orderXmlStream As Stream _
) As OrderGroup
'Usage
Dim orderXmlStream As Stream
Dim returnValue As OrderGroup

returnValue = OrderGroup.FromXml(orderXmlStream)
public static OrderGroup FromXml(
    Stream orderXmlStream
)
public:
static OrderGroup^ FromXml(
    Stream^ orderXmlStream
)
public static function FromXml(
    orderXmlStream : Stream
) : OrderGroup

Parameters

Return Value

Type: Microsoft.CommerceServer.Runtime.Orders..::.OrderGroup
A newly created OrderGroup.

Exceptions

Exception Condition
XmlException

The specified Xml does not conform to required schema.

ArgumentNullException

orderXmlStream is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Creates an order group from an XML stream.

Permissions

See Also

Reference

OrderGroup Class

OrderGroup Members

Microsoft.CommerceServer.Runtime.Orders Namespace