agentleFS
aspose-emailaspose-email/agentic-net-examples/working-with-microsoft-graph-client/AGENTS.md

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

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
  1. Distinctive:

    Follow root boundaries and testing guide.

    line 80

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 .cs examples 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

FileDescription
assign-a-category-named-important-to-a-message-using-client-messages-addcategory-method.csassign 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.csauthenticate 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.csconfigure 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.cscopy 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.cscreate 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.cscreate 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.cscreate 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.cscreate 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.cscreate 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.cscreate 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.cscreate 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.cscreate 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.cscreate 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.csdelete 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.csdelete 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.csdelete 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.csenable 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.csgenerate 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.csgenerate 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.csimplement 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.csremove 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.csretrieve 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.csretrieve 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.csretrieve 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.csretrieve 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.csretrieve 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.csretrieve 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.csupdate 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.csuse 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.csutilize 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.csutilize 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.csutilize 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.csutilize 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.csutilize 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.csutilize 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.csutilize 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.csutilize 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.csutilize 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 -->
DateRun IDBranch/Commit
2026-09-14autoexamples/batch-auto
<!-- AUTOGENERATED:END -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.