Skip to content

BehaviorSubject(T) constructor

Defined in

Type: BehaviorSubject Namespace: System.Reactive.Subjects Assembly: System.Reactive.dll

Applies to

netstandard2.0

public BehaviorSubject(T value)

Summary: Initializes a new instance of the BehaviorSubject class which creates a subject that caches its last value and starts with the specified value.

Parameters

NameTypeDescription
valueTInitial value sent to observers when no other value has been received by the subject yet.