Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
The pragma deleteinstance command deletes an existing instance of a class from the repository.
The following describes the syntax for this command:
#pragma deleteinstance("InstanceId", [Flag])
InstanceId is a unique identifier of the instance the MOF compiler deletes from the current namespace.
[Flag] must be one of the following arguments.
| Flag | Description |
|---|---|
| fail | Causes the MOF compiler to quit with an error message if the class does not already exist in the repository. |
| nofail | Causes the MOF compiler to continue even if the class does not already exist. |
Examples
The following example shows how to use this command.
#pragma deleteinstance(
"MSFT_RisingFallingTemplate.id='TestRisingFallingCorrId'",
nofail)
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client |
Windows Vista |
| Minimum supported server |
Windows Server 2008 |