agentic-net-examples / working-with-microsoft-graph-client
AGENTS.md2 starsChanged 7 months agoMITView on GitHub
C# examples for working-with-microsoft-graph-client using Aspose.Email for .NET
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository18 other files it gives its agents.
- aspose-email-examplesAGENTS.md
- convert-between-formatsAGENTS.md
- convert-thunderbird-mbox-filesAGENTS.md
- programming-email-verificationAGENTS.md
- programming-with-gmailAGENTS.md
- read-and-export-zimbra-tgz-filesAGENTS.md
- working-with-amp-html-emailsAGENTS.md
- working-with-exchange-ews-clientAGENTS.md
- working-with-exchange-webdav-clientAGENTS.md
- working-with-ibm-notesAGENTS.md
- working-with-imap-clientAGENTS.md
- working-with-mime-messagesAGENTS.md
- working-with-outlook-itemsAGENTS.md
- working-with-outlook-storage-filesAGENTS.md
- working-with-pop3-clientAGENTS.md
- working-with-smtp-clientAGENTS.md
- zimbraAGENTS.md
- llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 80
Follow root boundaries and testing guide.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS - working-with-microsoft-graph-client
Persona
You are a C# developer working in the working-with-microsoft-graph-client category. This folder contains standalone C# examples for this category. See the root AGENTS.md for repository-wide conventions.
Scope
- Examples for working-with-microsoft-graph-client.
- Files are standalone
.csexamples stored directly in this folder.
Required Namespaces
using System;(38 file(s))using Aspose.Email;(38 file(s))using Aspose.Email.Clients;(34 file(s))using Aspose.Email.Clients.Graph;(34 file(s))using System.IO;(25 file(s))using Aspose.Email.Mapi;(24 file(s))using Aspose.Email.Clients.Exchange;(5 file(s))using System.Collections.Generic;(3 file(s))using Aspose.Email.Clients.Exchange.Dav;(2 file(s))using Aspose.Email.Clients.Exchange.WebService;(1 file(s))using Aspose.Email.Calendar;(1 file(s))using System.Text.Json;(1 file(s))
Files in this folder
| File | Description |
| assign-a-category-named-important-to-a-message-using-client-messages-addcategory-method.cs | assign a category named important to a message using client messages addcategory method |
| authenticate-with-azure-active-directory-via-microsoft-graph-client-using-office-credentials-extracted-from-an-msg-file.cs | authenticate with azure active directory via microsoft graph client using office credentials extracted from an msg file |
| configure-accessparameters-class-with-client-id-tenant-id-and-client-secret-for-authentication.cs | configure accessparameters class with client id tenant id and client secret for authentication |
| copy-an-msg-format-email-message-to-a-destination-mailbox-utilizing-the-microsoft-graph-client-api.cs | copy an msg format email message to a destination mailbox utilizing the microsoft graph client api |
| create-a-calendar-event-using-microsoft-graph-client-by-importing-data-from-an-msg-file.cs | create a calendar event using microsoft graph client by importing data from an msg file |
| create-a-mail-category-in-microsoft-graph-using-data-extracted-from-an-msg-file-format.cs | create a mail category in microsoft graph using data extracted from an msg file format |
| create-a-new-mail-folder-named-projectupdates-under-the-inbox-using-client-folders-createfolder.cs | create a new mail folder named projectupdates under the inbox using client folders createfolder |
| create-a-notebook-from-an-msg-file-programmatically-using-the-microsoft-graph-client-api.cs | create a notebook from an msg file programmatically using the microsoft graph client api |
| create-a-task-in-microsoft-graph-from-an-msg-file-using-the-graph-client-api.cs | create a task in microsoft graph from an msg file using the graph client api |
| create-an-azure-ad-admin-center-project-from-an-msg-file-using-the-microsoft-graph-client.cs | create an azure ad admin center project from an msg file using the microsoft graph client |
| create-an-azure-ad-application-in-the-tenant-using-microsoft-graph-client-extracting-required-configuration-from-an-msg-file.cs | create an azure ad application in the tenant using microsoft graph client extracting required configuration from an msg file |
| create-an-email-message-from-an-msg-file-using-the-microsoft-graph-client-api.cs | create an email message from an msg file using the microsoft graph client api |
| create-an-email-rule-from-an-msg-file-using-the-microsoft-graph-client-library.cs | create an email rule from an msg file using the microsoft graph client library |
| delete-a-specific-mail-folder-using-client-folders-deletefolder-with-its-unique-identifier.cs | delete a specific mail folder using client folders deletefolder with its unique identifier |
| delete-a-task-list-and-retrieve-its-tasks-via-microsoft-graph-client-using-an-msg-formatted-source.cs | delete a task list and retrieve its tasks via microsoft graph client using an msg formatted source |
| delete-an-outlook-rule-by-its-identifier-using-client-rules-deleterule-method.cs | delete an outlook rule by its identifier using client rules deleterule method |
| enable-public-client-authentication-flows-for-msg-files-using-the-microsoft-graph-client-library.cs | enable public client authentication flows for msg files using the microsoft graph client library |
| generate-an-application-key-from-an-msg-file-using-the-microsoft-graph-client-library.cs | generate an application key from an msg file using the microsoft graph client library |
| generate-an-attachment-from-an-msg-file-using-microsoft-graph-client-ensuring-proper-mime-type-and-content-encoding.cs | generate an attachment from an msg file using microsoft graph client ensuring proper mime type and content encoding |
| implement-a-microsoft-graph-client-loop-that-iterates-until-pageinfo-lastpage-is-false-appending-msg-format-messages-via.cs | implement a microsoft graph client loop that iterates until pageinfo lastpage is false appending msg format messages via |
| remove-an-attachment-from-an-msg-file-programmatically-using-the-microsoft-graph-client-api.cs | remove an attachment from an msg file programmatically using the microsoft graph client api |
| retrieve-a-calendar-event-from-an-msg-file-using-the-microsoft-graph-client-api.cs | retrieve a calendar event from an msg file using the microsoft graph client api |
| retrieve-a-task-stored-in-msg-format-programmatically-using-the-microsoft-graph-client-api.cs | retrieve a task stored in msg format programmatically using the microsoft graph client api |
| retrieve-an-msg-format-attachment-via-the-microsoft-graph-client-handling-authentication-and-response-parsing.cs | retrieve an msg format attachment via the microsoft graph client handling authentication and response parsing |
| retrieve-an-msg-formatted-email-message-using-the-microsoft-graph-client-api-and-process-its-contents.cs | retrieve an msg formatted email message using the microsoft graph client api and process its contents |
| retrieve-message-rules-from-an-msg-file-by-utilizing-the-microsoft-graph-client-api.cs | retrieve message rules from an msg file by utilizing the microsoft graph client api |
| retrieve-the-tasks-list-embedded-within-an-msg-file-using-the-microsoft-graph-client-api.cs | retrieve the tasks list embedded within an msg file using the microsoft graph client api |
| update-the-subject-line-of-a-message-using-client-messages-updatemessage-method.cs | update the subject line of a message using client messages updatemessage method |
| use-microsoft-graph-client-to-enumerate-steps-for-creating-an-azure-ad-admin-center-project-from-an-msg-file.cs | use microsoft graph client to enumerate steps for creating an azure ad admin center project from an msg file |
| utilize-microsoft-graph-client-to-add-the-msal-net-package-and-install-the-microsoft-identity-client-nuget-containing.cs | utilize microsoft graph client to add the msal net package and install the microsoft identity client nuget containing |
| utilize-microsoft-graph-client-to-programmatically-copy-a-notebook-stored-in-msg-format-to-a-target-location.cs | utilize microsoft graph client to programmatically copy a notebook stored in msg format to a target location |
| utilize-microsoft-graph-client-to-retrieve-and-display-the-new-application-registration-blade-from-an-msg-file.cs | utilize microsoft graph client to retrieve and display the new application registration blade from an msg file |
| utilize-microsoft-graph-client-to-subscribe-to-product-updates-automatically-delivered-in-msg-format.cs | utilize microsoft graph client to subscribe to product updates automatically delivered in msg format |
| utilize-microsoft-graph-client-to-transform-ics-files-to-msg-and-convert-msg-files-to-eml-format.cs | utilize microsoft graph client to transform ics files to msg and convert msg files to eml format |
| utilize-the-microsoft-graph-client-to-configure-graph-api-permissions-extracted-from-an-msg-file.cs | utilize the microsoft graph client to configure graph api permissions extracted from an msg file |
| utilize-the-microsoft-graph-client-to-create-or-update-an-override-using-an-msg-formatted-message.cs | utilize the microsoft graph client to create or update an override using an msg formatted message |
| utilize-the-microsoft-graph-client-to-retrieve-a-notebook-encapsulated-within-an-msg-file.cs | utilize the microsoft graph client to retrieve a notebook encapsulated within an msg file |
| utilize-the-microsoft-graph-client-to-retrieve-and-display-the-newly-registered-applications-blade-from-msg-format.cs | utilize the microsoft graph client to retrieve and display the newly registered applications blade from msg format |
Category Statistics
- Total examples: 38
General Tips
- Follow root boundaries and testing guide.
- Dispose client objects; avoid hardcoded secrets; prefer explicit types.
<!-- AUTOGENERATED:START -->| Date | Run ID | Branch/Commit |
| 2026-09-14 | auto | examples/batch-auto |
<!-- AUTOGENERATED:END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

