Jaa


OrganizationServiceContextExtensions.CancelContract Method (OrganizationServiceContext, Guid, DateTime, OptionSetValue)

 

Applies To: Dynamics CRM 2015

Cancels a contract. (Developer Extensions)

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

Syntax

public static void CancelContract(
    this OrganizationServiceContext context,
    Guid contractId,
    DateTime cancelDate,
    OptionSetValue status
)
public:
[ExtensionAttribute]
static void CancelContract(
    OrganizationServiceContext^ context,
    Guid contractId,
    DateTime cancelDate,
    OptionSetValue^ status
)
static member CancelContract : 
        context:OrganizationServiceContext *
        contractId:Guid *
        cancelDate:DateTime *
        status:OptionSetValue -> unit
<ExtensionAttribute>
Public Shared Sub CancelContract (
    context As OrganizationServiceContext,
    contractId As Guid,
    cancelDate As Date,
    status As OptionSetValue
)

Parameters

  • contractId
    Type: System.Guid

    The ID of the contract. Required.

  • cancelDate
    Type: System.DateTime

    The contract cancelation date. Required.

Remarks

This is a method wrapper for the CancelContractRequest and CancelContractResponse 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 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright