Class GraphResponse<T>
The base of the exchange of a IGraphRequest<T> or IGraphResponse<T>.
Inherited Members
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 |