NuGetConsole.Host.PowerShell.Implementation.RunspaceDispatcher.Invoke C# (CSharp) Method

Invoke() public method

public Invoke ( string command, object inputs, bool outputResults ) : Collection
command string
inputs object
outputResults bool
return Collection
        public Collection<PSObject> Invoke(string command, object[] inputs, bool outputResults)
        {
            if (String.IsNullOrEmpty(command))
            {
                throw new ArgumentNullException("command");
            }

            using (Pipeline pipeline = CreatePipeline(command, outputResults))
            {
                return InvokeCore(pipeline, inputs);
            }
        }