IUpdate::IsMandatory property

Gets a Boolean value that indicates whether the installation of the update is mandatory.

This property is read-only.

Syntax


HRESULT get_IsMandatory(
  [out]  VARIANT_BOOL *retval
);

Property value

VARIANT_TRUE if the installation of the update is mandatory; otherwise, VARIANT_FALSE.

Error codes

Returns S_OK if successful. Otherwise, returns a COM or Windows error code.

Remarks

If you try to mark a mandatory update as hidden, an error occurs.

Mandatory updates are updates to the Windows Update Agent (WUA) infrastructure. WUA may not require all mandatory updates to continue operating. However, these updates frequently improve performance or increase the number of products that WUA can offer. We recommend that you install all mandatory updates.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional with SP3 [desktop apps only]

Minimum supported server

Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only]

Header

Wuapi.h

IDL

Wuapi.idl

Library

Wuguid.lib

DLL

Wuapi.dll

See also

IUpdate

 

 

Community Additions

ADD
Show:
© 2014 Microsoft