Partager via


GetPurchaseOrderAsDataSet Method

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

Namespace:  Microsoft.CommerceServer.Orders.WebService
Assembly:  Microsoft.CommerceServer.Orders.DataManagement (in Microsoft.CommerceServer.Orders.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function GetPurchaseOrderAsDataSet ( _
    orderGroupId As Guid _
) As DataSet
'Usage
Dim instance As OrdersWebService
Dim orderGroupId As Guid
Dim returnValue As DataSet

returnValue = instance.GetPurchaseOrderAsDataSet(orderGroupId)
[WebMethodAttribute]
public virtual DataSet GetPurchaseOrderAsDataSet(
    Guid orderGroupId
)
[WebMethodAttribute]
public:
virtual DataSet^ GetPurchaseOrderAsDataSet(
    Guid orderGroupId
)
public function GetPurchaseOrderAsDataSet(
    orderGroupId : Guid
) : DataSet

Parameters

Return Value

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

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.

Permissions

See Also

Reference

OrdersWebService Class

OrdersWebService Members

Microsoft.CommerceServer.Orders.WebService Namespace