MediaTagResult Struct
Represents the result of a media tag operation that does not return a value.
public readonly struct MediaTagResultRemarks
The default value of this type is a failure carrying MediaTagError.UnsupportedFormat, so MediaTagResult.Error is never null when MediaTagResult.IsSuccess is false.
Properties
| Name | Description |
|---|---|
| Error | Gets the error that occurred, or null if the operation succeeded. |
| ErrorMessage | Gets a human-readable error message, if the operation failed. |
| IsSuccess | Gets a value indicating whether the operation succeeded. |
Error
MediaTagResult.csGets the error that occurred, or null if the operation succeeded.
public MediaTagError? Error { get; }Property value
ErrorMessage
MediaTagResult.csIsSuccess
MediaTagResult.csMethods
| Name | Description |
|---|---|
| Failure(MediaTagError, string?) | Creates a failure result with the specified error. |
| Success() | Creates a successful result. |
Failure(MediaTagError, string?)
MediaTagResult.csCreates a failure result with the specified error.
public static MediaTagResult Failure(MediaTagError error, string? message = null)