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 Win32LobApp
{
OdataType = "#microsoft.graph.win32LobApp",
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,
CommittedContentVersion = "Committed Content Version value",
FileName = "File Name value",
Size = 4L,
InstallCommandLine = "Install Command Line value",
UninstallCommandLine = "Uninstall Command Line value",
ApplicableArchitectures = WindowsArchitecture.X86,
MinimumFreeDiskSpaceInMB = 8,
MinimumMemoryInMB = 1,
MinimumNumberOfProcessors = 9,
MinimumCpuSpeedInMHz = 4,
Rules = new List<Win32LobAppRule>
{
new Win32LobAppRegistryRule
{
OdataType = "microsoft.graph.win32LobAppRegistryRule",
RuleType = Win32LobAppRuleType.Requirement,
Check32BitOn64System = true,
KeyPath = "Key Path value",
ValueName = "Value Name value",
OperationType = Win32LobAppRegistryRuleOperationType.Exists,
Operator = Win32LobAppRuleOperator.Equal,
ComparisonValue = "Comparison Value value",
},
},
InstallExperience = new Win32LobAppInstallExperience
{
OdataType = "microsoft.graph.win32LobAppInstallExperience",
RunAsAccount = RunAsAccountType.User,
DeviceRestartBehavior = Win32LobAppRestartBehavior.Allow,
},
ReturnCodes = new List<Win32LobAppReturnCode>
{
new Win32LobAppReturnCode
{
OdataType = "microsoft.graph.win32LobAppReturnCode",
ReturnCode = 10,
Type = Win32LobAppReturnCodeType.Success,
},
},
MsiInformation = new Win32LobAppMsiInformation
{
OdataType = "microsoft.graph.win32LobAppMsiInformation",
ProductCode = "Product Code value",
ProductVersion = "Product Version value",
UpgradeCode = "Upgrade Code value",
RequiresReboot = true,
PackageType = Win32LobAppMsiPackageType.PerUser,
ProductName = "Product Name value",
Publisher = "Publisher value",
},
SetupFilePath = "Setup File Path value",
MinimumSupportedWindowsRelease = "Minimum Supported Windows Release 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);