Export (0) Print
Expand All

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.

createonlyPrevents the compiler from changing any existing instances in the MOF file.
updateonlyPrevents the compiler from creating new instances if an instance specified in the MOF file does not exist.



The following example shows how to use this command.

#pragma instanceflags("createonly")


Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

See also

Preprocessor Commands



© 2014 Microsoft