Search Results for

    Show / Hide Table of Contents
    View Source

    Class OperationResult<TResultType>

    Represents the result of a service operation.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class OperationResult<TResultType> : object where TResultType : struct
    Type Parameters
    Name Description
    TResultType

    The type of the result type.

    Remarks

    Type TResultType must be an enumeration, and its underlying type must be byte. Values indicating success should be in the 0-127 range, while values indicating failure should be in the 128-255 range. See OperationResultType for a base implementation.

    Constructors

    View Source

    OperationResult(TResultType, EventMessages)

    Initializes a new instance of the OperationResult<TResultType> class.

    Declaration
    public OperationResult(TResultType result, EventMessages eventMessages)
    Parameters
    Type Name Description
    TResultType result
    EventMessages eventMessages

    Properties

    View Source

    EventMessages

    Gets the event messages produced by the operation.

    Declaration
    public EventMessages EventMessages { get; }
    Property Value
    Type Description
    EventMessages
    View Source

    Result

    Gets the result of the operation.

    Declaration
    public TResultType Result { get; }
    Property Value
    Type Description
    TResultType
    View Source

    Success

    Gets a value indicating whether the operation was successful.

    Declaration
    public bool Success { get; }
    Property Value
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • OperationResult(TResultType, EventMessages)
    • Properties
      • EventMessages
      • Result
      • Success
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX