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
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
contractId
Type: System.GuidThe ID of the contract. Required.
cancelDate
Type: System.DateTimeThe contract cancelation date. Required.
status
Type: Microsoft.Xrm.Sdk.OptionSetValueThe status of the contract. 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