This documentation is archived and is not being maintained.

NetworkStream Members

NetworkStream overview

Public Constructors

public constructorNetworkStream Constructor

Supported by the .NET Compact Framework.

Overloaded. Creates a new instance of the NetworkStream class.

Public Properties

public propertyCanRead

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether the NetworkStream supports reading.
public propertyCanSeek

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether the stream supports seeking. This property always returns false.
public propertyCanWrite

Supported by the .NET Compact Framework.

Overridden. Gets a value that indicates whether the NetworkStream supports writing.
public propertyDataAvailable

Supported by the .NET Compact Framework.

Gets a value indicating whether data is available on the NetworkStream to be read.
public propertyLength

Supported by the .NET Compact Framework.

Overridden. Gets the length of the data available on the stream. This property always throws a NotSupportedException.
public propertyPosition

Supported by the .NET Compact Framework.

Overridden. Gets or sets the current position in the stream. This property always throws a NotSupportedException.

Public Methods

public methodBeginRead

Supported by the .NET Compact Framework.

Overridden. Begins an asynchronous read from the NetworkStream.
public methodBeginWrite

Supported by the .NET Compact Framework.

Overridden. Begins an asynchronous write to a stream.
public methodClose

Supported by the .NET Compact Framework.

Overridden. Closes the NetworkStream.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodEndRead

Supported by the .NET Compact Framework.

Overridden. Handles the end of an asynchronous read.
public methodEndWrite

Supported by the .NET Compact Framework.

Overridden. Handles the end of an asynchronous write.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodFlush

Supported by the .NET Compact Framework.

Overridden. Flushes data from the stream. This method is reserved for future use.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodRead

Supported by the .NET Compact Framework.

Overridden. Reads data from the NetworkStream.
public methodReadByte (inherited from Stream)

Supported by the .NET Compact Framework.

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 methodSeek

Supported by the .NET Compact Framework.

Overridden. Sets the current position of the stream to the given value. This method always throws a NotSupportedException.
public methodSetLength

Supported by the .NET Compact Framework.

Overridden. Sets the length of the stream. This method always throws a NotSupportedException.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.
public methodWrite

Supported by the .NET Compact Framework.

Overridden. Writes data to the NetworkStream.
public methodWriteByte (inherited from Stream)

Supported by the .NET Compact Framework.

Writes a byte to the current position in the stream and advances the position within the stream by one byte.

Protected Properties

protected propertyReadable Gets or sets a value indicating whether the NetworkStream can be read.
protected propertySocket Gets the underlying Socket.
protected propertyWriteable Gets a value that indicates whether the NetworkStream is writable.

Protected Methods

protected methodCreateWaitHandle (inherited from Stream)

Supported by the .NET Compact Framework.

Allocates a WaitHandle object.
protected methodDispose

Supported by the .NET Compact Framework.

Releases the unmanaged resources used by the NetworkStream and optionally releases the managed resources.
protected methodFinalize

Supported by the .NET Compact Framework.

Overridden. Releases all resources used by the NetworkStream.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

NetworkStream Class | System.Net.Sockets Namespace

Show: