pragma instanceflags

The pragma instanceflags preprocessor command controls the way instances are created or updated depending on the flags specified.

The following describes the syntax:

#pragma instanceflags ([Flag])

[Flag] must be one of the following arguments.

Flag Description
createonly Prevents the compiler from changing any existing instances in the MOF file.
updateonly Prevents the compiler from creating new instances if an instance specified in the MOF file does not exist.

Examples

The following example shows how to use this command.

#pragma instanceflags("createonly")

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008

See also

Preprocessor Commands