RetrieveDeploymentLicenseType Message

banner art

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

The relevant classes are specified in the following table.

Type Class
Request RetrieveDeploymentLicenseTypeRequest
Response RetrieveDeploymentLicenseTypeResponse
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 RetrieveDeploymentLicenseType Privileges.

Example

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

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

// Create the request object.
RetrieveDeploymentLicenseTypeRequest retrieve = new RetrieveDeploymentLicenseTypeRequest();

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

// Execute the request.
RetrieveDeploymentLicenseTypeResponse retrieved = (RetrieveDeploymentLicenseTypeResponse) service.Execute(retrieve);

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

' Create the request's target object.
Dim retrieve As RetrieveDeploymentLicenseTypeRequest()

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

' Execute the request.
Dim retrieved As RetrieveDeploymentLicenseTypeResponse = CType(service.Execute(retrieve), RetrieveDeploymentLicenseTypeResponse)

Related Topics

CrmService Messages

© 2007 Microsoft Corporation. All rights reserved.