Share via


GetPurchaseOrderAsDataSet Method

Returns the DataSet for the PurchaseOrder with the specified OrderGroup identifier.

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

Syntax

'Declaration
Public Function GetPurchaseOrderAsDataSet ( _
    orderGroupId As Guid _
) As DataSet
'Usage
Dim instance As PurchaseOrderManager
Dim orderGroupId As Guid
Dim returnValue As DataSet

returnValue = instance.GetPurchaseOrderAsDataSet(orderGroupId)
public DataSet GetPurchaseOrderAsDataSet(
    Guid orderGroupId
)
public:
DataSet^ GetPurchaseOrderAsDataSet(
    Guid orderGroupId
)
public function GetPurchaseOrderAsDataSet(
    orderGroupId : Guid
) : DataSet

Parameters

Return Value

Type: System.Data..::.DataSet
DataSet for the PurchaseOrder. If the PurchaseOrder is not found in the database it returns nullNothingnullptra null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
NotAuthorizedException

User does not have permission to perform this operation.

TimeoutException

Thrown if an SQL command timeout occurs.

Remarks

Returns the DataSet populated with the serialized XML for the PurchaseOrder.

In order to perform a GetPurchaseOrderAsDataSet, the user must have the OrdersViewer permissions. See Orders System Roles [CS06] for more information about the specific roles in the Order System.

Some order system APIs support distributed transactions. If a cookie with a valid transaction is found the order system enlists as part of that transaction. If a valid transaction is not found the order system initiates a new transaction.

Permissions

See Also

Reference

PurchaseOrderManager Class

PurchaseOrderManager Members

Microsoft.CommerceServer.Orders Namespace