Show / Hide Table of Contents

    Class GraphRequest<T>

    The base of the exchange of a IGraphRequest<T> or IGraphResponse<T>.

    Inheritance
    Object
    GraphRequest<T>
    GraphRequest
    Implements
    IGraphRequest<T>
    IGraphExchange<T>
    IGraphExchange
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.Graph.Communications.Common.Transport
    Assembly: Microsoft.Graph.Communications.Common.dll
    Syntax
    public class GraphRequest<T> : IGraphRequest<T>, IGraphExchange<T>, IGraphExchange
    Type Parameters
    Name Description
    T

    Constructors

    GraphRequest(Uri, T, RequestType)

    Initializes a new instance of the GraphRequest<T> class. Create the graph request object

    Declaration
    public GraphRequest(Uri location, T content, RequestType requestType)
    Parameters
    Type Name Description
    Uri location

    The uri location for the request.

    T content

    Content to be sent as part of the request.

    RequestType requestType

    Type of the request.

    Properties

    Content

    Declaration
    public T Content { get; set; }
    Property Value
    Type Description
    T

    Properties

    Gets the properties of the exchange.

    Declaration
    public ICollection<IGraphProperty> Properties { get; }
    Property Value
    Type Description
    ICollection<IGraphProperty>

    RequestType

    Declaration
    public RequestType RequestType { get; }
    Property Value
    Type Description
    RequestType

    Uri

    Declaration
    public Uri Uri { get; }
    Property Value
    Type Description
    Uri

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Implements

    IGraphRequest<T>
    IGraphExchange<T>
    IGraphExchange

    Extension Methods

    AdditionalDataExtensions.SetInAdditionalData(Object, String, Object)
    Extensions.Pin(Object)
    Extensions.ChangeType(Object, Type)
    Extensions.ChangeType<T>(Object)
    Extensions.TryDispose(Object, IGraphLogger)
    ReflectionUtils.GetPropertyUsingReflection(Object, String)
    ReflectionUtils.SetPropertyUsingReflection(Object, String, Object)
    Validator.IsNull(Object, String, String)
    Validator.NotNull<T>(T, String, String)
    Validator.Equals<T>(T, T, String, String)
    Validator.Equals<T, TE>(T, T, String)
    Validator.NotEquals<T>(T, T, String, String)
    GraphRequestExtensions.ToHttpRequestMessage<T>(IGraphRequest<T>, JsonSerializerSettings, IEnumerable<IGraphProperty>)
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.