Search Results for

    Show / Hide Table of Contents

    Class FileStreamMediaContentSource

    Defines a media content source that wraps a file

    Inheritance
    System.Object
    MediaContentSource
    FileStreamMediaContentSource
    LocalFileStreamMediaContentSource
    Implements
    ImageVault.Abstractions.IMediaContentSource
    System.IDisposable
    Inherited Members
    MediaContentSource.Dispose()
    MediaContentSource.Disposed
    MediaContentSource.Offset
    MediaContentSource.TotalLength
    MediaContentSource.Name
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: ImageVault.Core.Common.Data
    Assembly: ImageVault.Core.dll
    Syntax
    public class FileStreamMediaContentSource : MediaContentSource, IDisposable

    Constructors

    FileStreamMediaContentSource(FileInfo, Int64, Int64)

    Creates a new Media content source for the supplied file

    Declaration
    public FileStreamMediaContentSource(FileInfo file, long offset = 0L, long length = 0L)
    Parameters
    Type Name Description
    System.IO.FileInfo file
    System.Int64 offset

    The offset of the file where the content should begin

    System.Int64 length

    The length of the content or 0 to read to the end of the file

    FileStreamMediaContentSource(String, Int64, Int64)

    Creates a new Media content source for the supplied file

    Declaration
    public FileStreamMediaContentSource(string path, long offset = 0L, long length = 0L)
    Parameters
    Type Name Description
    System.String path

    Path to the file

    System.Int64 offset

    The offset of the file where the content should begin

    System.Int64 length

    The length of the content or 0 to read to the end of the file

    Properties

    Length

    Declaration
    public override long Length { get; }
    Property Value
    Type Description
    System.Int64
    Overrides
    MediaContentSource.Length

    Path

    Returns the path of the file

    Declaration
    public string Path { get; }
    Property Value
    Type Description
    System.String

    Methods

    Dispose(Boolean)

    Called when the object

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    MediaContentSource.Dispose(Boolean)

    GetStream()

    Declaration
    public override Stream GetStream()
    Returns
    Type Description
    System.IO.Stream
    Overrides
    MediaContentSource.GetStream()

    Implements

    ImageVault.Abstractions.IMediaContentSource
    System.IDisposable
    In This Article
    Back to top (c) Meriworks 2002-2022