Share via


RemoveDeploymentLicense Message

banner art

Removes the license for a deployment (installation of Microsoft CRM).

The relevant classes are specified in the following table.

Type Class
Request RemoveDeploymentLicenseRequest
Response RemoveDeploymentLicenseResponse
Entity license

Remarks

To perform this action, the caller must have access rights on the license entity instance. For a list of required privileges, see RemoveDeploymentLicense Privileges.

Example

The following code example shows how to use the RemoveDeploymentLicense message.

[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the request object.
RemoveDeploymentLicenseRequest remove = new RemoveDeploymentLicenseRequest();

// Set the ID of the organization.
remove.OrganizationId = new Guid("18ECA720-493E-4800-BBFD-638BD54EB325");

// Set the key of the licenses to remove.
remove.LicenseKey = @"P3676-2VQVX-HT6HV-QC3VC-6RVMW";

// Execute the request.
RemoveDeploymentLicenseResponse removed = (RemoveDeploymentLicenseResponse) service.Execute(remove);

[Visual Basic .NET]
' Set up the CRM Service.
Dim service As New CrmService()
service.Credentials = System.Net.CredentialCache.DefaultCredentials

' Create the request object.
Dim remove As RemoveDeploymentLicenseRequest()

' Set the ID of the organization.
remove.OrganizationId = New Guid("18ECA720-493E-4800-BBFD-638BD54EB325")

' Set the key of the license to remove.
remove.LicenseKey = "P3676-2VQVX-HT6HV-QC3VC-6RVMW"

' Execute the request.
Dim removed As RemoveDeploymentLicenseResponse = CType(service.Execute(remove), RemoveDeploymentLicenseResponse)

Related Topics

CrmService Messages

© 2007 Microsoft Corporation. All rights reserved.