Share via


Win32_Patch class

The Win32_Patch WMI class represents an individual update to be applied to a particular file and whose source resides at a specified location.

Note

For more information about support or requirements for installation on a specific operating system, see Operating System Availability of WMI Components.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.

Syntax

[Provider("MSIProv"), Dynamic]
class Win32_Patch : Win32_MSIResource
{
  uint16 Attributes;
  string Caption;
  string Description;
  string File;
  uint32 PatchSize;
  string ProductCode;
  sint16 Sequence;
  string SettingID;
};

Members

The Win32_Patch class has these types of members:

Properties

The Win32_Patch class has these properties.

Attributes

Data type: uint16

Access type: Read-only

Bit flag that represents update attributes. A value of 1 (one) indicates that the failure to apply this update is not a fatal error.

Caption

Data type: string

Access type: Read-only

Short textual description of the CIM_Setting object.

Description

Data type: string

Access type: Read-only

Description of the CIM_Setting object.

File

Data type: string

Access type: Read-only

Qualifiers: Key, Dynamic

File identifier of the Win32_FileSpecification instance to which this update applies.

PatchSize

Data type: uint32

Access type: Read-only

Size, in bytes, of the update.

ProductCode

Data type: string

Access type: Read-only

Qualifiers: Key, Dynamic

Product code for the product to which this update is applied.

Sequence

Data type: sint16

Access type: Read-only

Qualifiers: Key, Dynamic

Position of this update in the sequence of patches on the source media.

SettingID

Data type: string

Access type: Read-only

Identifier by which the CIM_Setting object is known.

Remarks

The Win32_Patch class is derived from Win32_MSIResource.

Requirements

Minimum supported client
Windows XP
Minimum supported server
Windows Server 2003
Namespace
Root\CIMV2
MOF
Msi.mof
DLL
Msiprov.dll

See also

Installed Applications Classes