Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.14 KB

intune-apps-windowsmicrosoftedgeapp-create-create-windowsmicrosoftedgeapp-csharp-snippets.md

File metadata and controls

39 lines (32 loc) · 1.14 KB
description
Automatically generated file. DO NOT MODIFY
// Code snippets are only available for the latest version. Current version is 5.x

// Dependencies
using Microsoft.Graph.Models;

var requestBody = new WindowsMicrosoftEdgeApp
{
	OdataType = "#microsoft.graph.windowsMicrosoftEdgeApp",
	DisplayName = "Display Name value",
	Description = "Description value",
	Publisher = "Publisher value",
	LargeIcon = new MimeContent
	{
		OdataType = "microsoft.graph.mimeContent",
		Type = "Type value",
		Value = Convert.FromBase64String("dmFsdWU="),
	},
	IsFeatured = true,
	PrivacyInformationUrl = "https://example.com/privacyInformationUrl/",
	InformationUrl = "https://example.com/informationUrl/",
	Owner = "Owner value",
	Developer = "Developer value",
	Notes = "Notes value",
	PublishingState = MobileAppPublishingState.Processing,
	Channel = MicrosoftEdgeChannel.Beta,
	DisplayLanguageLocale = "Display Language Locale value",
};

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceAppManagement.MobileApps.PostAsync(requestBody);