IUpdate.GetLicenseAgreement Method ()


Applies To: Windows Server Update Services

Gets the license agreement for this update.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)


ILicenseAgreement GetLicenseAgreement()
ILicenseAgreement^ GetLicenseAgreement()
abstract GetLicenseAgreement : unit -> ILicenseAgreement
Function GetLicenseAgreement As ILicenseAgreement

Return Value

Type: Microsoft.UpdateServices.Administration.ILicenseAgreement

An ILicenseAgreement that contains the text of the agreement and indicates if the agreement has been accepted and by whom.





The update does not have a license agreement. To determine if the update has an associated license agreement, call HasLicenseAgreement.


The update has a license agreement, but the agreement could not be found in the database. The license agreement must be downloaded before you can get the agreement. To determine if the agreement has been downloaded, call State. The agreement is not downloaded if the state is LicenseAgreementNotReady or LicenseAgreementFailed.

See Also

IUpdate Interface
Microsoft.UpdateServices.Administration Namespace

Return to top