Freigeben über


FileRedirectionAst Constructor

Definition

Construct a redirection to a file.

public:
 FileRedirectionAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::RedirectionStream stream, System::Management::Automation::Language::ExpressionAst ^ file, bool append);
public FileRedirectionAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.RedirectionStream stream, System.Management.Automation.Language.ExpressionAst file, bool append);
new System.Management.Automation.Language.FileRedirectionAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.RedirectionStream * System.Management.Automation.Language.ExpressionAst * bool -> System.Management.Automation.Language.FileRedirectionAst
Public Sub New (extent As IScriptExtent, stream As RedirectionStream, file As ExpressionAst, append As Boolean)

Parameters

extent
IScriptExtent

The extent of the redirection, starting with the redirection operator and including the file.

stream
RedirectionStream

The stream being redirected.

file
ExpressionAst

The optional location to redirect to. Merging operators may not specify a file, the other redirection operators must specify a location.

append
Boolean

True if the file is being appended, false otherwise.

Exceptions

If extent is null.

If file is null.

Applies to