pragma deleteclass
The pragma deleteclass preprocessor command deletes an existing class and its instances from the repository.
The following describes the syntax:
#pragma deleteclass("ClassName", [Flag])
ClassName is the name of the class that 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 deleteclass("MyClass1",FAIL)
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
See also
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про