DevToys logo DevToys
  • Home
  • Blog
  • Documentation
  • Download
Search Results for

    Show / Hide Table of Contents

    Class DataDetectionResult

    Represents the result of data detection.

    Inheritance
    object
    DataDetectionResult
    Implements
    IEquatable<DataDetectionResult>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DevToys.Api
    Assembly: DevToys.Api.dll
    Syntax
    public record DataDetectionResult : IEquatable<DataDetectionResult>

    Constructors

    DataDetectionResult(bool, object?)

    Represents the result of data detection.

    Declaration
    public DataDetectionResult(bool Success, object? Data)
    Parameters
    Type Name Description
    bool Success

    A value indicating whether the data detection was successful.

    object Data

    The detected data.

    Fields

    Unsuccessful

    Represents an unsuccessful data detection result.

    Declaration
    public static readonly DataDetectionResult Unsuccessful
    Field Value
    Type Description
    DataDetectionResult

    Properties

    Data

    Gets the detected data.

    Declaration
    public object? Data { get; init; }
    Property Value
    Type Description
    object

    DataType

    Gets the type of the detected data.

    Declaration
    public Type? DataType { get; }
    Property Value
    Type Description
    Type

    Success

    Gets a value indicating whether the data detection was successful.

    Declaration
    public bool Success { get; init; }
    Property Value
    Type Description
    bool

    Implements

    IEquatable<T>

    Extension Methods

    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys