Show / Hide Table of Contents

    Class ContentMemoryStream

    A System.IO.MemoryStream implementation with content type.

    Inheritance
    System.Object
    System.MarshalByRefObject
    System.IO.Stream
    System.IO.MemoryStream
    ContentMemoryStream
    Implements
    System.IDisposable
    Inherited Members
    System.IO.MemoryStream.Dispose(System.Boolean)
    System.IO.MemoryStream.Flush()
    System.IO.MemoryStream.FlushAsync(System.Threading.CancellationToken)
    System.IO.MemoryStream.GetBuffer()
    System.IO.MemoryStream.TryGetBuffer(System.ArraySegment<System.Byte>)
    System.IO.MemoryStream.Read(System.Byte[], System.Int32, System.Int32)
    System.IO.MemoryStream.ReadAsync(System.Byte[], System.Int32, System.Int32, System.Threading.CancellationToken)
    System.IO.MemoryStream.ReadByte()
    System.IO.MemoryStream.CopyToAsync(System.IO.Stream, System.Int32, System.Threading.CancellationToken)
    System.IO.MemoryStream.Seek(System.Int64, System.IO.SeekOrigin)
    System.IO.MemoryStream.SetLength(System.Int64)
    System.IO.MemoryStream.ToArray()
    System.IO.MemoryStream.Write(System.Byte[], System.Int32, System.Int32)
    System.IO.MemoryStream.WriteAsync(System.Byte[], System.Int32, System.Int32, System.Threading.CancellationToken)
    System.IO.MemoryStream.WriteByte(System.Byte)
    System.IO.MemoryStream.WriteTo(System.IO.Stream)
    System.IO.MemoryStream.CanRead
    System.IO.MemoryStream.CanSeek
    System.IO.MemoryStream.CanWrite
    System.IO.MemoryStream.Capacity
    System.IO.MemoryStream.Length
    System.IO.MemoryStream.Position
    System.IO.Stream.Null
    System.IO.Stream.CopyToAsync(System.IO.Stream)
    System.IO.Stream.CopyToAsync(System.IO.Stream, System.Int32)
    System.IO.Stream.CopyTo(System.IO.Stream)
    System.IO.Stream.CopyTo(System.IO.Stream, System.Int32)
    System.IO.Stream.Close()
    System.IO.Stream.Dispose()
    System.IO.Stream.FlushAsync()
    System.IO.Stream.CreateWaitHandle()
    System.IO.Stream.BeginRead(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
    System.IO.Stream.EndRead(System.IAsyncResult)
    System.IO.Stream.ReadAsync(System.Byte[], System.Int32, System.Int32)
    System.IO.Stream.BeginWrite(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
    System.IO.Stream.EndWrite(System.IAsyncResult)
    System.IO.Stream.WriteAsync(System.Byte[], System.Int32, System.Int32)
    System.IO.Stream.Synchronized(System.IO.Stream)
    System.IO.Stream.ObjectInvariant()
    System.IO.Stream.CanTimeout
    System.IO.Stream.ReadTimeout
    System.IO.Stream.WriteTimeout
    System.MarshalByRefObject.MemberwiseClone(System.Boolean)
    System.MarshalByRefObject.GetLifetimeService()
    System.MarshalByRefObject.InitializeLifetimeService()
    System.MarshalByRefObject.CreateObjRef(System.Type)
    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: 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
    System.Byte[] buffer

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

    System.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
    System.String

    ContentType

    Gets the content type of this stream.

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

    FileName

    Gets or sets the download file name.

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

    Implements

    System.IDisposable
    Back to top Nevatech Sentinet 6.6 Online Documentation