Show / Hide Table of Contents

Class Response<T>

Represents a result of Azure operation.

Inheritance
System.Object
NullableResponse<T>
Response<T>
Inherited Members
NullableResponse<T>.GetRawResponse()
NullableResponse<T>.ToString()
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Core.dll
Syntax
[System.Diagnostics.DebuggerTypeProxy(typeof(Azure.ResponseDebugView`1))]
public abstract class Response<T> : Azure.NullableResponse<T>
Type Parameters
T

The type of returned value.

Constructors

Response<T>()

Declaration
protected Response ();

Properties

HasValue

Gets a value indicating whether the current instance has a valid value of its underlying type.

Declaration
[System.ComponentModel.EditorBrowsable]
public override bool HasValue { get; }
Property Value
System.Boolean

Value

Gets the value returned by the service. Accessing this property will throw if HasValue is false.

Declaration
public override T Value { get; }
Property Value
T

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

Declaration
[System.ComponentModel.EditorBrowsable]
public override bool Equals (object obj);
Parameters
System.Object obj

The object to compare with the current object.

Returns
System.Boolean

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

Declaration
[System.ComponentModel.EditorBrowsable]
public override int GetHashCode ();
Returns
System.Int32

A hash code for the current object.

Operators

Implicit(Response<T> to T)

Returns the value of this Response<T> object.

Declaration
public static implicit operator T (Azure.Response<T> response);
Parameters
Response<T> response

The Response<T> instance.

Returns
T

Back to top Azure SDK for .NET