Click or drag to resize
Galactic API

PowerShellScript Class

A class that provides the ability to run and verify the results from PowerShell scripts. Provides the ability to run the scripts both synchronously and asynchronously.
Inheritance Hierarchy
SystemObject
  Galactic.PowerShellPowerShellScript

Namespace:  Galactic.PowerShell
Assembly:  Galactic.PowerShell (in Galactic.PowerShell.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public class PowerShellScript : IPowerShellScript, 
	IDisposable, IExceptionLogger

The PowerShellScript type exposes the following members.

Constructors
  NameDescription
Public methodPowerShellScript
Inititalizes the PowerShellScript environment.
Top
Properties
  NameDescription
Public propertyLog
The event log that will receive events from this logger.
Public propertyResults
The results of the Powershell Script call.
Public propertyRunspacePool
A specific Runspace pool used to invoke pipelines for this PowerShell Script. (Optional)
Top
Methods
  NameDescription
Public methodDispose
Disposes of system resources opened by the script.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeRunspacePool
Creates a new pool of Runspaces for this script to utilize.
Public methodLogException
Logs an exception to the event log.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRunAsynchronously
Runs a PowerShell script/command asynchronously.
Public methodRunSynchronously
Runs a PowerShell command/script synchronously.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVerifyResultProperty
Verifies that one of the results returned contains a property that matches the supplied value.
Top
See Also