Pash.Implementation.ExecutionContext.Clone C# (CSharp) Method

Clone() public method

public Clone ( ScopeUsages scopeUsage = ScopeUsages.CurrentScope ) : ExecutionContext
scopeUsage ScopeUsages
return ExecutionContext
        public ExecutionContext Clone(ScopeUsages scopeUsage = ScopeUsages.CurrentScope)
        {
            return Clone(SessionState, scopeUsage);
        }

Same methods

ExecutionContext::Clone ( System.Management.Automation.SessionState sessionState, ScopeUsages scopeUsage ) : ExecutionContext

Usage Example

Exemplo n.º 1
0
        internal override void ProcessRecord()
        {
            ExecutionContext context = ExecutionContext.Clone();

            PipelineCommandRuntime pipelineCommandRuntime = (PipelineCommandRuntime)CommandRuntime;

            this._scriptInfo.ScriptBlock.Ast.Visit(new ExecutionVisitor(context, pipelineCommandRuntime, false));
        }
All Usage Examples Of Pash.Implementation.ExecutionContext::Clone