OrganizationServiceContextExtensions.DeleteAuditData Method (OrganizationServiceContext, DateTime)


Applies To: Dynamics CRM 2015

Deletes all partitions containing audit data created before a given end date. (Developer Extensions)

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


public static int DeleteAuditData(
    this OrganizationServiceContext context,
    DateTime endDate
static int DeleteAuditData(
    OrganizationServiceContext^ context,
    DateTime endDate
static member DeleteAuditData : 
        context:OrganizationServiceContext *
        endDate:DateTime -> int
Public Shared Function DeleteAuditData (
    context As OrganizationServiceContext,
    endDate As Date
) As Integer


Return Value

Type: System.Int32

Returns an Int32, the number of deleted audit partitions or the number of deleted Audit records.


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