Search Results for

    Show / Hide Table of Contents

    Class MediaContentSourceExtensions

    Extension methods for the ImageVault.Abstractions.IMediaContentSource interface

    Inheritance
    System.Object
    MediaContentSourceExtensions
    Inherited Members
    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 static class MediaContentSourceExtensions

    Methods

    GetBytes(IMediaContentSource)

    Gets the content bytes of a ImageVault.Abstractions.IMediaContentSource

    Declaration
    public static byte[] GetBytes(this IMediaContentSource contentSource)
    Parameters
    Type Name Description
    ImageVault.Abstractions.IMediaContentSource contentSource
    Returns
    Type Description
    System.Byte[]

    WriteToStream(IMediaContentSource, Stream)

    Writes the content to the supplied stream

    Declaration
    public static void WriteToStream(this IMediaContentSource contentSource, Stream output)
    Parameters
    Type Name Description
    ImageVault.Abstractions.IMediaContentSource contentSource
    System.IO.Stream output
    In This Article
    Back to top (c) Meriworks 2002-2022