Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 880 Bytes

File metadata and controls

30 lines (23 loc) · 880 Bytes
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.Beta.Models;

var requestBody = new FileStorageContainer
{
	DisplayName = "My Application Storage Container",
	Description = "Description of My Application Storage Container",
	ContainerTypeId = Guid.Parse("91710488-5756-407f-9046-fbe5f0b4de73"),
	Settings = new FileStorageContainerSettings
	{
		IsOcrEnabled = true,
		ItemMajorVersionLimit = 50,
		IsItemVersioningEnabled = true,
		ItemDefaultSensitivityLabelId = "3d8789ae-7375-4ded-8eeb-d6bc226e42fb",
	},
};

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