Méthode | Description | |
---|---|---|
CheckErrorsFromReader ( PipelineReader |
Checks whether errors reader contains some error, if so the errors are concatenated and exception is thrown, throws ConnectorException if the errors parameter is not empty Introduced because of "Problem while PowerShell execution System.NotSupportedException: Specified method is not supported. at System.Management.Automation.Internal.PSDataCollectionPipelineReader`2.ReadToEnd()" (occurring on Exchange 2010/Windows Server 2008 R2)
|
|
CheckErrorsFromReader ( PipelineReader | ||
DefaultRunspaceCreateMethod ( ) : System.Management.Automation.Runspaces.Runspace | ||
Dispose ( ) : void |
Implementation of IDisposable
|
|
InvokePipeline ( Collection |
invoke the powershell pipeline
|
|
InvokePipeline ( System.Management.Automation.Runspaces.Command item ) : ICollection |
invoke the pipeline
|
|
InvokeScript ( string script, ICollection |
||
InvokeScriptInternal ( System.Management.Automation.Runspaces.Runspace runspace, string script, ICollection |
||
PowerShellSupport ( IList |
Initializes a new instance of the PowerShellSupport class.
|
|
ProcessRunspaceException ( System.Management.Automation.Runspaces.Runspace runspace, int attempt, System.Management.Automation.Runspaces.InvalidRunspaceStateException e ) : void | ||
Test ( ) : void |
Test the state of this PowerShellSupport, throws InvalidRunspaceStateException if in incorrect state
|
Méthode | Description | |
---|---|---|
AddError ( IList |
||
CheckErrors ( IList |
Checks whether errors List contains some error, if so the errors are concatenated and exception is thrown, throws ConnectorException if the errors parameter is not empty
|
|
CheckErrors ( IList |
||
DefaultThrowIcfExceptionImplementation ( |
||
Dispose ( bool disposing ) : void |
Dispose/Finalize pattern
|
|
InvokePipelineInternal ( System.Management.Automation.Runspaces.Runspace runspace, Collection |
public static CheckErrorsFromReader ( PipelineReader | ||
reader | PipelineReader | pipeline reader |
Résultat | void |
public static CheckErrorsFromReader ( PipelineReader | ||
reader | PipelineReader | |
throwIcfExceptionDelegate | ThrowIcfExceptionDelegate | |
Résultat | void |
public DefaultRunspaceCreateMethod ( ) : System.Management.Automation.Runspaces.Runspace | ||
Résultat | System.Management.Automation.Runspaces.Runspace |
public InvokePipeline ( Collection |
||
commands | Collection |
a collection of commands to execute |
Résultat | ICollection |
public InvokePipeline ( System.Management.Automation.Runspaces.Command item ) : ICollection |
||
item | System.Management.Automation.Runspaces.Command | a command to execute |
Résultat | ICollection |
public InvokeScript ( string script, ICollection |
||
script | string | |
parameters | ICollection |
|
Résultat | ICollection |
public InvokeScriptInternal ( System.Management.Automation.Runspaces.Runspace runspace, string script, ICollection |
||
runspace | System.Management.Automation.Runspaces.Runspace | |
script | string | |
parameters | ICollection |
|
Résultat | ICollection |
public PowerShellSupport ( IList |
||
localSnapinNames | IList |
Local snapins to be loaded |
createRunspaceMethod | CreateRunspaceDelegate | A method used to create a new runspace (if null, a default implementation is used) |
messageCatalog | ConnectorMessages | The message catalog used for conveying localized messages. |
Résultat | System |
public ProcessRunspaceException ( System.Management.Automation.Runspaces.Runspace runspace, int attempt, System.Management.Automation.Runspaces.InvalidRunspaceStateException e ) : void | ||
runspace | System.Management.Automation.Runspaces.Runspace | |
attempt | int | |
e | System.Management.Automation.Runspaces.InvalidRunspaceStateException | |
Résultat | void |