Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- orderXmlStream
Type: System.IO..::.Stream
The Stream containing XML data.
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
- 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.