Share via


CRMLicense Class

The CRMLicense class contains methods that you can use to manage software licenses.

Note   For more information about licenses, see the Licenses section of Microsoft CRM Object Model.

There are no properties for this class.

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Web.Services.Protocols.WebClientProtocol
            System.Web.Services.Protocols.HttpWebClientProtocol
               System.Web.Services.Protocols.SoapHttpClientProtocol
                  CRMLicense

[Visual Basic .NET]
Public Class CRMLicense
   Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
[C#]
public class CRMLicense : System.Web.Services.Protocols.SoapHttpClientProtocol
[C++]
public __gc class CRMLicense: public System.Web.Services.Protocols.SoapHttpClientProtocol

The CRMLicense class exposes the following methods.

Method Description
AddDeploymentLicense Adds the specified license to a deployment.
AddSetupUser For internal use only.
CheckValidLicenseCombination Checks whether the specified license combination is valid for a user.
DeleteDeploymentLicense Deletes the specified license from a deployment.
GetAvailableLicenseCount Retrieves the number of available (ungranted) licenses of a particular license type for an organization.
GetDeploymentLicenses Retrieves all of the licenses for a deployment.
GetDeploymentLicensesEx Retrieves all of the licenses for a deployment. This method includes a parameter to specify the columns to be retrieved.
GetGrantedLicenseCount Returns the number of licenses of a particular type that have been granted in an organzation.
GetPurchasedLicenseCount Returns the total number of licenses of a particular type that have been purchased by an organization.
GetUserLicenses Retrieves all of the licenses for a user.
GetUserUnassignedLicenses Retrieves all of the unassigned licenses for a user.
GrantUserLicense Grants a license to a user.
IsLicenseValidForDeployment Checks whether the specified license is valid for the deployment.
IsLicenseValidForUser Checks whether the specified license is valid for the user.
RevokeUserLicense Revokes a the license for a user.

Requirements

Namespace: Microsoft.Crm.Platform.Proxy

Assembly: Microsoft.Crm.Platform.Proxy.dll

See Also

© 2005 Microsoft Corporation. All rights reserved.