From fb9a01309509ced6c29ba375023975fc779869d5 Mon Sep 17 00:00:00 2001 From: Hardik Kaurani Date: Thu, 22 Oct 2026 13:40:04 +0530 Subject: [PATCH] docs: fix AddAsync reference to PostAsync and documentation typos --- docs/collections.md | 2 +- docs/errors.md | 2 +- docs/tokencredentials.md | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/collections.md b/docs/collections.md index d226c59bc10..9385c01649f 100644 --- a/docs/collections.md +++ b/docs/collections.md @@ -40,7 +40,7 @@ var newGroup = await graphServiceClient .PostAsync(groupToCreate); ``` -`AddAsync` returns the created group on success and throws a `ApiException` on error. +`PostAsync` returns the created group on success and throws an `ApiException` on error. ## Expanding a collection diff --git a/docs/errors.md b/docs/errors.md index bdcce4bafa9..af2f2bc5038 100644 --- a/docs/errors.md +++ b/docs/errors.md @@ -41,4 +41,4 @@ catch (ODataError odataError) when (odataError.Error.Code.Equals(GraphErrorCode. } ``` -Each error object has a `Message` property as well as code. This message is for debugging purposes and is not be meant to be displayed to the user. Common error codes are defined in [GraphErrorCode.cs](../src/Microsoft.Graph/Enums/GraphErrorCode.cs). +Each error object has a `Message` property as well as code. This message is for debugging purposes and is not meant to be displayed to the user. Common error codes are defined in [GraphErrorCode.cs](../src/Microsoft.Graph/Enums/GraphErrorCode.cs). diff --git a/docs/tokencredentials.md b/docs/tokencredentials.md index 92311999b39..2a87d04da28 100644 --- a/docs/tokencredentials.md +++ b/docs/tokencredentials.md @@ -60,8 +60,7 @@ User me = await graphClient.Me.GetAsync(); ## 4. ClientSecretCredential -This credential class provides the [Client credentials authentication flow using an app secret](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-authentication-flows#client-credentials) a similar use to the **deprecated Client Credential AuthProvider** with the use of a client secret and can be used as follows. -The device code flow enables sign in to devices by way of another device. +This credential class provides the [Client credentials authentication flow using an app secret](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-authentication-flows#client-credentials) and similar use to the **deprecated Client Credential AuthProvider** with the use of a client secret and can be used as follows. ```cs string[] scopes = {"https://graph.microsoft.com/.default"}; @@ -75,7 +74,7 @@ User me = await graphClient.Users["user-id"].GetAsync(); ## 5. ClientCertificateCredential -This credential class provides the [Client credentials authentication flow using an certificate](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-authentication-flows#client-credentials) a similar use to the **deprecated Client Credential AuthProvider** with the use of a client certificate and can be used as follows. +This credential class provides the [Client credentials authentication flow using a certificate](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-authentication-flows#client-credentials) a similar use to the **deprecated Client Credential AuthProvider** with the use of a client certificate and can be used as follows. ```cs string[] scopes = {"https://graph.microsoft.com/.default"}; @@ -110,7 +109,7 @@ It is also useful to know that Azure.Identity provides other TokenCredentials th ## 1. EnvironmentCredential -This credential enables the used of defined environment variables to configure authentication. The environment variables used are as follows. +This credential enables the use of defined environment variables to configure authentication. The environment variables used are as follows. - AZURE_TENANT_ID - The Azure Active Directory tenant(directory) ID. - AZURE_CLIENT_ID - The client(application) ID of an App Registration in the tenant.