Show / Hide Table of Contents

    Class ContentMemoryStream

    A MemoryStream implementation with content type.

    Inheritance
    Object
    MarshalByRefObject
    Stream
    MemoryStream
    ContentMemoryStream
    Implements
    IDisposable
    Inherited Members
    MemoryStream.Dispose(Boolean)
    MemoryStream.Flush()
    MemoryStream.FlushAsync(CancellationToken)
    MemoryStream.GetBuffer()
    MemoryStream.TryGetBuffer(ArraySegment<Byte>)
    MemoryStream.Read(Byte[], Int32, Int32)
    MemoryStream.ReadAsync(Byte[], Int32, Int32, CancellationToken)
    MemoryStream.ReadByte()
    MemoryStream.CopyToAsync(Stream, Int32, CancellationToken)
    MemoryStream.Seek(Int64, SeekOrigin)
    MemoryStream.SetLength(Int64)
    MemoryStream.ToArray()
    MemoryStream.Write(Byte[], Int32, Int32)
    MemoryStream.WriteAsync(Byte[], Int32, Int32, CancellationToken)
    MemoryStream.WriteByte(Byte)
    MemoryStream.WriteTo(Stream)
    MemoryStream.CanRead
    MemoryStream.CanSeek
    MemoryStream.CanWrite
    MemoryStream.Capacity
    MemoryStream.Length
    MemoryStream.Position
    Stream.Null
    Stream.CopyToAsync(Stream)
    Stream.CopyToAsync(Stream, Int32)
    Stream.CopyTo(Stream)
    Stream.CopyTo(Stream, Int32)
    Stream.Close()
    Stream.Dispose()
    Stream.FlushAsync()
    Stream.CreateWaitHandle()
    Stream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)
    Stream.EndRead(IAsyncResult)
    Stream.ReadAsync(Byte[], Int32, Int32)
    Stream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)
    Stream.EndWrite(IAsyncResult)
    Stream.WriteAsync(Byte[], Int32, Int32)
    Stream.Synchronized(Stream)
    Stream.ObjectInvariant()
    Stream.CanTimeout
    Stream.ReadTimeout
    Stream.WriteTimeout
    MarshalByRefObject.MemberwiseClone(Boolean)
    MarshalByRefObject.GetLifetimeService()
    MarshalByRefObject.InitializeLifetimeService()
    MarshalByRefObject.CreateObjRef(Type)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Nevatech.Vsb.Repository
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public class ContentMemoryStream : MemoryStream, IDisposable

    Constructors

    ContentMemoryStream()

    Initializes a new instance of the ContentMemoryStream.

    Declaration
    public ContentMemoryStream()

    ContentMemoryStream(Byte[], String)

    Initializes a new instance of the ContentMemoryStream.

    Declaration
    public ContentMemoryStream(byte[] buffer, string contentType)
    Parameters
    Type Name Description
    Byte[] buffer

    The array of unsigned bytes from which to create the current stream.

    String contentType

    The optional content type. The default value is "application/octet-stream".

    Properties

    ContentDisposition

    Gets or sets the content disposition HTTP header value.

    Declaration
    public string ContentDisposition { get; set; }
    Property Value
    Type Description
    String

    ContentType

    Gets the content type of this stream.

    Declaration
    public string ContentType { get; set; }
    Property Value
    Type Description
    String

    FileName

    Gets or sets the download file name.

    Declaration
    public string FileName { get; set; }
    Property Value
    Type Description
    String

    Implements

    System.IDisposable
    Back to top Nevatech Sentinet 6.5 Online Documentation