Table of Contents

Class GetEnvironmentVariable

Namespace
Bonsai.IO
Assembly
Bonsai.System.dll

Represents an operator that gets the value of an environment variable for the current process.

public class GetEnvironmentVariable : Source<string>
Inheritance
GetEnvironmentVariable
Inherited Members

Properties

Name

Gets or sets the name of the environment variable to query the value of.

public string Name { get; set; }

Property Value

string

Methods

Generate()

Gets the value of the specified environment variable for the current process and returns it through an observable sequence.

public override IObservable<string> Generate()

Returns

IObservable<string>

A sequence containing the value of the specified environment variable. The value will be null if the environment variable is not found.

Generate<TSource>(IObservable<TSource>)

Gets the value of the specified environment variable for the current process whenever an observable sequence emits a notification.

public IObservable<string> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence of notifications used to get the value of the environment variable.

Returns

IObservable<string>

A sequence containing the current values of the specified environment variable. The value may be null if the environment variable is not found.

Type Parameters

TSource

The type of the elements in the source sequence.