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
- orderGroupId
Type: System..::.Guid
The OrderGroup identifier.
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
- 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.