// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new WindowsInformationProtectionAppLearningSummary
{
OdataType = "#microsoft.graph.windowsInformationProtectionAppLearningSummary",
ApplicationName = "Application Name value",
ApplicationType = ApplicationType.Desktop,
DeviceCount = 11,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.WindowsInformationProtectionAppLearningSummaries["{windowsInformationProtectionAppLearningSummary-id}"].PatchAsync(requestBody);
// THE CLI IS IN PREVIEW. NON-PRODUCTION USE ONLY
mgc device-management windows-information-protection-app-learning-summaries patch --windows-information-protection-app-learning-summary-id {windowsInformationProtectionAppLearningSummary-id} --body '{\
"@odata.type": "#microsoft.graph.windowsInformationProtectionAppLearningSummary",\
"applicationName": "Application Name value",\
"applicationType": "desktop",\
"deviceCount": 11\
}\
'
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
WindowsInformationProtectionAppLearningSummary windowsInformationProtectionAppLearningSummary = new WindowsInformationProtectionAppLearningSummary();
windowsInformationProtectionAppLearningSummary.setOdataType("#microsoft.graph.windowsInformationProtectionAppLearningSummary");
windowsInformationProtectionAppLearningSummary.setApplicationName("Application Name value");
windowsInformationProtectionAppLearningSummary.setApplicationType(ApplicationType.Desktop);
windowsInformationProtectionAppLearningSummary.setDeviceCount(11);
WindowsInformationProtectionAppLearningSummary result = graphClient.deviceManagement().windowsInformationProtectionAppLearningSummaries().byWindowsInformationProtectionAppLearningSummaryId("{windowsInformationProtectionAppLearningSummary-id}").patch(windowsInformationProtectionAppLearningSummary);
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.