Class Result
Class Result.
Namespace: ISynergy.Framework.UI.Models
Assembly: ISynergy.Framework.UI.dll
Syntax
public class Result : object
Properties
View SourceDescription
Gets or sets the description.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String | The description. |
Exception
Gets or sets the exception.
Declaration
public Exception Exception { get; set; }
Property Value
Type | Description |
---|---|
Exception | The exception. |
IsOk
Gets or sets a value indicating whether this instance is ok.
Declaration
public bool IsOk { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Message
Gets or sets the message.
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String | The message. |
Methods
View SourceError(Exception)
Errors the specified ex.
Declaration
public static Result Error(Exception ex)
Parameters
Type | Name | Description |
---|---|---|
Exception | ex | The ex. |
Returns
Type | Description |
---|---|
Result | Result. |
Error(String, String)
Errors the specified message.
Declaration
public static Result Error(string message, string description = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.String | description | The description. |
Returns
Type | Description |
---|---|
Result | Result. |
Ok()
Oks this instance.
Declaration
public static Result Ok()
Returns
Type | Description |
---|---|
Result | Result. |
Ok(String, String)
Oks the specified message.
Declaration
public static Result Ok(string message, string description = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.String | description | The description. |
Returns
Type | Description |
---|---|
Result | Result. |
ToString()
Returns a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A |