OrganizationServiceContextExtensions.DeleteOpenInstances Method (OrganizationServiceContext, Entity, DateTime, Int32)

 

Applies To: Dynamics CRM 2015

Deletes instances of a recurring appointment master that have an Open state. (Developer Extensions)

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

Syntax

public static void DeleteOpenInstances(
    this OrganizationServiceContext context,
    Entity target,
    DateTime seriesEndDate,
    int stateOfPastInstances
)
public:
[ExtensionAttribute]
static void DeleteOpenInstances(
    OrganizationServiceContext^ context,
    Entity^ target,
    DateTime seriesEndDate,
    int stateOfPastInstances
)
static member DeleteOpenInstances : 
        context:OrganizationServiceContext *
        target:Entity *
        seriesEndDate:DateTime *
        stateOfPastInstances:int -> unit
<ExtensionAttribute>
Public Shared Sub DeleteOpenInstances (
    context As OrganizationServiceContext,
    target As Entity,
    seriesEndDate As Date,
    stateOfPastInstances As Integer
)

Parameters

  • seriesEndDate
    Type: System.DateTime

    The end date for the recurring appointment series. Required.

  • stateOfPastInstances
    Type: System.Int32

    The value to be used to set the status of appointment instances that have already passed. Required.

Remarks

This is a method wrapper for the DeleteOpenInstancesRequest and DeleteOpenInstancesResponse 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