Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions src/System.Management.Automation/engine/PowerShellStreamType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace System.Management.Automation
{
/// <summary>
/// Enumeration of the possible PowerShell stream types.
/// This enumeration is obsolete.
/// </summary>
/// <remarks>
/// This enumeration is a public type formerly used in PowerShell Workflow,
/// but kept due to its generic name and public accessibility.
/// It is not used by any other PowerShell API, and is now obsolete
/// and should not be used if possible.
/// </remarks>
[Obsolete("This enum type was used only in PowerShell Workflow and is now obsolete.", error: true)]
public enum PowerShellStreamType
{
/// <summary>
/// PSObject.
/// </summary>
Input = 0,

/// <summary>
/// PSObject.
/// </summary>
Output = 1,

/// <summary>
/// ErrorRecord.
/// </summary>
Error = 2,

/// <summary>
/// WarningRecord.
/// </summary>
Warning = 3,

/// <summary>
/// VerboseRecord.
/// </summary>
Verbose = 4,

/// <summary>
/// DebugRecord.
/// </summary>
Debug = 5,

/// <summary>
/// ProgressRecord.
/// </summary>
Progress = 6,

/// <summary>
/// InformationRecord.
/// </summary>
Information = 7
}
}