Show / Hide Table of Contents

    Class GraphResponse<T>

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

    Inheritance
    Object
    GraphResponse<T>
    GraphResponse
    Implements
    IGraphResponse<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 GraphResponse<T> : IGraphResponse<T>, IGraphExchange<T>, IGraphExchange
    Type Parameters
    Name Description
    T

    Constructors

    GraphResponse(T, ResponseStatus)

    Initializes a new instance of the GraphResponse<T> class. Create a new graph response

    Declaration
    public GraphResponse(T content, ResponseStatus status)
    Parameters
    Type Name Description
    T content

    The serialized content of the response.

    ResponseStatus status

    Status indicating success/failure/other for the response.

    GraphResponse(String, ResponseStatus, String)

    Initializes a new instance of the GraphResponse<T> class.

    Declaration
    public GraphResponse(string errorContent, ResponseStatus status, string reasonPhrase)
    Parameters
    Type Name Description
    String errorContent

    Content of the error.

    ResponseStatus status

    The status.

    String reasonPhrase

    The reason phrase.

    Properties

    Content

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

    ErrorContent

    Declaration
    public string ErrorContent { get; set; }
    Property Value
    Type Description
    String

    Properties

    Gets the properties of the exchange.

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

    ReasonPhrase

    Declaration
    public string ReasonPhrase { get; set; }
    Property Value
    Type Description
    String

    Status

    Declaration
    public ResponseStatus Status { get; }
    Property Value
    Type Description
    ResponseStatus

    Methods

    ToString()

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

    Implements

    IGraphResponse<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)
    GraphResponseExtensions.ToHttpResponseMessage<T>(IGraphResponse<T>, JsonSerializerSettings, IEnumerable<IGraphProperty>)
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.