다음을 통해 공유


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

 

Applies To: Dynamics CRM 2013

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 2013

Return to top