Method Invalid
| Improve this Doc View SourceInvalid()
Represents a validation error that prevents the underlying service from completing.
Declaration
public static Result Invalid()
Returns
| Type | Description |
|---|---|
| Result |
Remarks
Used in situations where the consumer provides invalid data.
Invalid(String)
Represents a validation error that prevents the underlying service from completing.
Declaration
public static Result Invalid(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | An error message. |
Returns
| Type | Description |
|---|---|
| Result |
Remarks
Used in situations where the consumer provides invalid data.
Invalid(IEnumerable<String>)
Represents a validation error that prevents the underlying service from completing.
Declaration
public static Result Invalid(IEnumerable<string> errors)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<String> | errors | A collection of string that contains error messages. |
Returns
| Type | Description |
|---|---|
| Result |
Remarks
Used in situations where the consumer provides invalid data.
Invalid(String, IEnumerable<String>)
Represents a validation error that prevents the underlying service from completing.
Declaration
public static Result Invalid(string message, IEnumerable<string> errors)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | A general description of the error. |
| IEnumerable<String> | errors | A collection of errors. |
Returns
| Type | Description |
|---|---|
| Result |
Remarks
Used in situations where the consumer provides invalid data.