Partager via


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)

Syntax

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

Parameters

Return Value

Type: System.Int32

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

Remarks

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