OrganizationServiceContextExtensions.CreateException Method (OrganizationServiceContext, Entity, DateTime, Boolean)

 

Applies To: Dynamics CRM 2015

Creates an exception for the recurring appointment instance. (Developer Extensions)

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

Syntax

public static Guid CreateException(
    this OrganizationServiceContext context,
    Entity target,
    DateTime originalStartDate,
    bool isDeleted
)
public:
[ExtensionAttribute]
static Guid CreateException(
    OrganizationServiceContext^ context,
    Entity^ target,
    DateTime originalStartDate,
    bool isDeleted
)
static member CreateException : 
        context:OrganizationServiceContext *
        target:Entity *
        originalStartDate:DateTime *
        isDeleted:bool -> Guid
<ExtensionAttribute>
Public Shared Function CreateException (
    context As OrganizationServiceContext,
    target As Entity,
    originalStartDate As Date,
    isDeleted As Boolean
) As Guid

Parameters

  • originalStartDate
    Type: System.DateTime

    The original start date of the recurring appointment.

  • isDeleted
    Type: System.Boolean

    A value that indicates whether the appointment instance is deleted.

Return Value

Type: System.Guid

Returns a Guid, the ID of the exception appointment.

Remarks

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