3.20.4.6 IUpdate::Deadline (Opnum 13)

The IUpdate::Deadline (opnum 13) method retrieves the date-time before which the update is installed.

 HRESULT Deadline(
   [out, retval] VARIANT* retval
 );

retval: Specifies the Coordinated Universal Time (UTC) date-time by which the update is installed or uninstalled, depending upon its deployment action. If there is no deadline for this update, the vt field MUST be set to VT_EMPTY, as specified in [MS-OAUT] section 2.2.7. Otherwise, the vt member MUST be set to VT_DATE, and the date-time of the deadline is stored in the date field.

Return Values: The method MUST return information in an HRESULT data structure. The severity bit in the structure identifies the following conditions:

  • If the severity bit is set to 0, the method completed successfully.

  • If the severity bit is set to 1, the method failed and encountered a fatal error.

Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].

If the HasDeadline ADM element is set to TRUE, the server SHOULD set the vt field of retval to VT_DATE and return the value of the Deadline ADM element in the date field of retval.

Otherwise, if the HasDeadline ADM element is set to FALSE, the server SHOULD set the vt field of retval to VT_EMPTY.