Ler em inglês Editar

Partilhar via


Channel<T> Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides a base class for channels that support reading and writing elements of type T.

C#
public abstract class Channel<T> : System.Threading.Channels.Channel<T,T>

Type Parameters

T

Specifies the type of data readable and writable in the channel.

Inheritance
Channel<T,T>
Channel<T>

Constructors

Channel<T>()

Initializes an instance of the Channel<T> class.

Properties

Reader

Gets the readable half of this channel.

(Inherited from Channel<TWrite,TRead>)
Writer

Gets the writable half of this channel.

(Inherited from Channel<TWrite,TRead>)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Produto Versões
.NET Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided), 2.1 (package-provided)