Share via


ServiceResult<T> Class

Definition

Service Result (to encapsulate errors)

[System.Runtime.Serialization.DataContract]
public class ServiceResult<T>
[<System.Runtime.Serialization.DataContract>]
type ServiceResult<'T> = class
Public Class ServiceResult(Of T)

Type Parameters

T

Type of result

Inheritance
ServiceResult<T>
Attributes

Constructors

ServiceResult<T>(T, Exception)

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

Properties

Error

Gets the error

HasError

Gets a value indicating whether the result has an error

Result

Gets a value of the result.

Applies to