다음을 통해 공유


OrganizationServiceContextExtensions.CancelSalesOrder Method (OrganizationServiceContext, Entity, OptionSetValue)

 

Applies To: Dynamics CRM 2013

Cancels a sales order. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static void CancelSalesOrder(
    this OrganizationServiceContext context,
    Entity orderClose,
    OptionSetValue status
)
public:
[ExtensionAttribute]
static void CancelSalesOrder(
    OrganizationServiceContext^ context,
    Entity^ orderClose,
    OptionSetValue^ status
)
static member CancelSalesOrder : 
        context:OrganizationServiceContext *
        orderClose:Entity *
        status:OptionSetValue -> unit
<ExtensionAttribute>
Public Shared Sub CancelSalesOrder (
    context As OrganizationServiceContext,
    orderClose As Entity,
    status As OptionSetValue
)

Parameters

  • orderClose
    Type: Microsoft.Xrm.Sdk.Entity

    The close activity that is associated with the sales order (order) that you want to cancel. Required.

Remarks

This is a method wrapper for the CancelSalesOrderRequest and CancelSalesOrderResponse classes. See the documentation in the Request class for more information about this message.

See Also

OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2013

Return to top