• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Web
      • CaseHandlingUriBuilder
      • CaseHandlingUriBuilder.CaseHandling
      • ExifOrientationUtilities
      • FormattedImage
      • FormatUtilities
      • HMACUtilities
      • ImageCacheMetadata
      • ImageMetadata
    • SixLabors.ImageSharp.Web.Caching
      • ICacheHash
      • ICacheKey
      • IImageCache
      • LegacyV1CacheKey
      • PhysicalFileSystemCache
      • PhysicalFileSystemCacheOptions
      • SHA256CacheHash
      • UriAbsoluteCacheKey
      • UriAbsoluteLowerInvariantCacheKey
      • UriRelativeCacheKey
      • UriRelativeLowerInvariantCacheKey
    • SixLabors.ImageSharp.Web.Commands
      • CommandCollection
      • CommandCollectionExtensions
      • CommandParser
      • IRequestParser
      • PresetOnlyQueryCollectionRequestParser
      • PresetOnlyQueryCollectionRequestParserOptions
      • QueryCollectionRequestParser
    • SixLabors.ImageSharp.Web.Commands.Converters
      • ArrayConverter<T>
      • ColorConverter
      • EnumConverter
      • ICommandConverter
      • ICommandConverter<T>
      • IntegralNumberConverter<T>
      • ListConverter<T>
      • SimpleCommandConverter<T>
    • SixLabors.ImageSharp.Web.DependencyInjection
      • ApplicationBuilderExtensions
      • IImageSharpBuilder
      • ImageSharpBuilderExtensions
      • ServiceCollectionExtensions
    • SixLabors.ImageSharp.Web.Middleware
      • ImageCommandContext
      • ImageProcessingContext
      • ImageSharpMiddleware
      • ImageSharpMiddlewareOptions
    • SixLabors.ImageSharp.Web.Processors
      • AutoOrientWebProcessor
      • BackgroundColorWebProcessor
      • FormatWebProcessor
      • IImageWebProcessor
      • QualityWebProcessor
      • ResizeWebProcessor
    • SixLabors.ImageSharp.Web.Providers
      • FileProviderImageProvider
      • IImageProvider
      • PhysicalFileSystemProvider
      • PhysicalFileSystemProviderOptions
      • ProcessingBehavior
      • WebRootImageProvider
    • SixLabors.ImageSharp.Web.Resolvers
      • FileProviderImageResolver
      • IImageCacheResolver
      • IImageResolver
      • PhysicalFileSystemCacheResolver
    • SixLabors.ImageSharp.Web.Synchronization
      • AsyncKeyLock<TKey>
      • AsyncKeyReaderWriterLock<TKey>
      • AsyncLock
      • AsyncReaderWriterLock
      • RefCountedConcurrentDictionary<TKey, TValue>

    Struct ImageMetadata

    Represents the metadata associated with an image file.

    Implements
    IEquatable<ImageMetadata>
    Inherited Members
    Object.Equals(Object, Object)
    Object.GetType()
    Object.ReferenceEquals(Object, Object)
    Namespace: SixLabors.ImageSharp.Web
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public readonly struct ImageMetadata : IEquatable<ImageMetadata>

    Constructors

    | Improve this Doc View Source

    ImageMetadata(DateTime, Int64)

    Initializes a new instance of the ImageMetadata struct.

    Declaration
    public ImageMetadata(DateTime lastWriteTimeUtc, long contentLength)
    Parameters
    Type Name Description
    DateTime lastWriteTimeUtc

    The date and time in coordinated universal time (UTC) since the source file was last modified.

    Int64 contentLength

    The length of the image in bytes.

    | Improve this Doc View Source

    ImageMetadata(DateTime, TimeSpan, Int64)

    Initializes a new instance of the ImageMetadata struct.

    Declaration
    public ImageMetadata(DateTime lastWriteTimeUtc, TimeSpan cacheControlMaxAge, long contentLength)
    Parameters
    Type Name Description
    DateTime lastWriteTimeUtc

    The date and time in coordinated universal time (UTC) since the source file was last modified.

    TimeSpan cacheControlMaxAge

    The maximum amount of time a resource will be considered fresh.

    Int64 contentLength

    The length of the image in bytes.

    Properties

    | Improve this Doc View Source

    CacheControlMaxAge

    Gets the maximum amount of time a resource will be considered fresh.

    Declaration
    public readonly TimeSpan CacheControlMaxAge { get; }
    Property Value
    Type Description
    TimeSpan
    | Improve this Doc View Source

    ContentLength

    Gets the length of the image in bytes.

    Declaration
    public readonly long ContentLength { get; }
    Property Value
    Type Description
    Int64
    | Improve this Doc View Source

    LastWriteTimeUtc

    Gets the date and time in coordinated universal time (UTC) since the source file was last modified.

    Declaration
    public readonly DateTime LastWriteTimeUtc { get; }
    Property Value
    Type Description
    DateTime

    Methods

    | Improve this Doc View Source

    Equals(ImageMetadata)

    Declaration
    public readonly bool Equals(ImageMetadata other)
    Parameters
    Type Name Description
    ImageMetadata other
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override readonly bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override readonly int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()
    | Improve this Doc View Source

    ToString()

    Declaration
    public override readonly string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()

    Operators

    | Improve this Doc View Source

    Equality(in ImageMetadata, in ImageMetadata)

    Compares two ImageMetadata objects for equality.

    Declaration
    public static bool operator ==(in ImageMetadata left, in ImageMetadata right)
    Parameters
    Type Name Description
    ImageMetadata left

    The ImageMetadata on the left side of the operand.

    ImageMetadata right

    The ImageMetadata on the right side of the operand.

    Returns
    Type Description
    Boolean

    True if the current left is equal to the right parameter; otherwise, false.

    | Improve this Doc View Source

    Inequality(in ImageMetadata, in ImageMetadata)

    Compares two ImageMetadata objects for inequality.

    Declaration
    public static bool operator !=(in ImageMetadata left, in ImageMetadata right)
    Parameters
    Type Name Description
    ImageMetadata left

    The ImageMetadata on the left side of the operand.

    ImageMetadata right

    The ImageMetadata on the right side of the operand.

    Returns
    Type Description
    Boolean

    True if the current left is unequal to the right parameter; otherwise, false.

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX