Search Results for

    Show / Hide Table of Contents

    Class GraphUtility

    Utility class to perform Graph operations.

    Inheritance
    System.Object
    GraphUtility
    Namespace: PnP.Framework.Graph
    Assembly: PnP.Framework.dll
    Syntax
    public static class GraphUtility : object

    Properties

    CaseInsensitiveJsonOptions

    Declaration
    public static JsonSerializerOptions CaseInsensitiveJsonOptions { get; }
    Property Value
    JsonSerializerOptions

    Methods

    InviteGuestUser(String, String, String, String, String, AzureEnvironment)

    This method sends an Azure guest user invitation to the provided email address.

    Declaration
    public static Invite InviteGuestUser(string accessToken, string guestUserEmail, string redirectUri, string customizedMessage = "", string guestUserDisplayName = "", AzureEnvironment azureEnvironment = default(AzureEnvironment))
    Parameters
    System.String accessToken

    The OAuth 2.0 Access Token to use for invoking the Microsoft Graph

    System.String guestUserEmail

    Email of the user to whom the invite must be sent

    System.String redirectUri

    URL where the user will be redirected after the invite is accepted.

    System.String customizedMessage

    Customized email message to be sent in the invitation email.

    System.String guestUserDisplayName

    Display name of the Guest user.

    AzureEnvironment azureEnvironment

    Defines the Azure Cloud Deployment. This is used to determine the MS Graph EndPoint to call which differs per Azure Cloud deployments. Defaults to Production (graph.microsoft.com).

    Returns
    Invite

    ReadPagedDataFromRequest<T>(String, String, Int32, Int32, Func<JsonNode, T[]>, Dictionary<String, String>)

    Declaration
    public static IEnumerable<T> ReadPagedDataFromRequest<T>(string requestUrl, string accessToken, int retryCount, int delay, Func<JsonNode, T[]> customDeserialise = null, Dictionary<string, string> requestHeaders = null)
    Parameters
    System.String requestUrl

    System.String accessToken

    System.Int32 retryCount

    System.Int32 delay

    Func<JsonNode, T[]> customDeserialise

    Dictionary<System.String, System.String> requestHeaders

    Returns
    IEnumerable<T>

    Type Parameters
    T

    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer