ServiceResult<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |