Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
The Delete method deletes the GPO.
Syntax
HRESULT Delete();
Return value
If the function succeeds, the return value is S_OK. Otherwise, the function returns one of the COM error codes defined in the Platform SDK header file WinError.h.
Remarks
After calling this method, you cannot call other methods of the IGroupPolicyObject interface because all data has been deleted for the GPO.
Note A policy refresh will not automatically be triggered when the local Group Policy object is deleted using the Delete method.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Target Platform | Windows |
| Header | gpedit.h |
| DLL | Gpedit.dll |