Jaa


OrganizationServiceProxy.Delete Method (String, Guid)

 

Applies To: Dynamics CRM 2015

Deletes a record.

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

Syntax

public void Delete(
    string entityName,
    Guid id
)
public:
virtual void Delete(
    String^ entityName,
    Guid id
) sealed
abstract Delete : 
        entityName:string *
        id:Guid -> unit
override Delete : 
        entityName:string *
        id:Guid -> unit
Public Sub Delete (
    entityName As String,
    id As Guid
)

Parameters

  • entityName
    Type: System.String

    Type: String. The logical name of the entity specified in the entityId parameter.

  • id
    Type: System.Guid

    Type: Guid. The ID of the record of the record to delete.

Implements

IOrganizationService.Delete(String, Guid)

Remarks

The core implementation of the Delete method. For more information, see IOrganizationService.Delete.

For more information about the exceptions that can be thrown when calling OrganizationServiceProxy methods, see Handle exceptions in your code.

See Also

OrganizationServiceProxy Class
Microsoft.Xrm.Sdk.Client Namespace
Troubleshooting and error handling
Use the IOrganizationService web service to read and write data or metadata

Return to top

© 2016 Microsoft. All rights reserved. Copyright