Export (0) Print
Expand All
4 out of 6 rated this helpful - Rate this topic

Stream Members

Provides a generic view of a sequence of bytes.

The Stream type exposes the following members.

  NameDescription
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Stream Called from constructors in derived classes to initialize the Stream class.
Top
  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework BeginRead Begins an asynchronous read operation.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework BeginWrite Begins an asynchronous write operation.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Close Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework CreateWaitHandle Obsolete. Allocates a WaitHandle object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Dispose Overloaded. Releases all resources used by the Stream object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework EndRead Waits for the pending asynchronous read to complete.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework EndWrite Ends an asynchronous write operation.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Flush When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Overloaded.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Read When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ReadByte Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Seek When overridden in a derived class, sets the position within the current stream.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework SetLength When overridden in a derived class, sets the length of the current stream.
Public method Static member Synchronized Creates a thread-safe (synchronized) wrapper around the specified Stream object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Write When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework WriteByte Writes a byte to the current position in the stream and advances the position within the stream by one byte.
Top
  NameDescription
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework Null A Stream with no backing store.
Top
  NameDescription
Public property Supported by the .NET Compact Framework Supported by the XNA Framework CanRead When overridden in a derived class, gets a value indicating whether the current stream supports reading.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework CanSeek When overridden in a derived class, gets a value indicating whether the current stream supports seeking.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework CanTimeout Gets a value that determines whether the current stream can time out.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework CanWrite When overridden in a derived class, gets a value indicating whether the current stream supports writing.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Length When overridden in a derived class, gets the length in bytes of the stream.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Position When overridden in a derived class, gets or sets the position within the current stream.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework ReadTimeout Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework WriteTimeout Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out.
Top
  NameDescription
Explicit interface implemetation Private method Supported by the .NET Compact Framework IDisposable.Dispose For a description of this member, see IDisposable.Dispose.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.