// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.DeviceAppManagement.MdmWindowsInformationProtectionPolicies["{mdmWindowsInformationProtectionPolicy-id}"].DeleteAsync();
// THE CLI IS IN PREVIEW. NON-PRODUCTION USE ONLY
mgc device-app-management mdm-windows-information-protection-policies delete --mdm-windows-information-protection-policy-id {mdmWindowsInformationProtectionPolicy-id}
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
graphClient.deviceAppManagement().mdmWindowsInformationProtectionPolicies().byMdmWindowsInformationProtectionPolicyId("{mdmWindowsInformationProtectionPolicy-id}").delete();
<?php
use Microsoft\Graph\GraphServiceClient;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$graphServiceClient->deviceAppManagement()->mdmWindowsInformationProtectionPolicies()->byMdmWindowsInformationProtectionPolicyId('mdmWindowsInformationProtectionPolicy-id')->delete()->wait();
Aquí tiene un ejemplo de la respuesta. Nota: Es posible que el objeto de respuesta que aparezca aquí esté truncado para abreviar. Todas las propiedades se devolverán desde una llamada real.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea: https://aka.ms/ContentUserFeedback.