C# Class PoshCode.PowerShell.SessionStateHelper

The SessionState Helper contains extension methods for working with SessionState or InitialSessionState objects
显示文件 Open project: Jaykul/PoshConsole

Public Methods

Method Description
LoadCmdlets ( this iss, Assembly assembly ) : InitialSessionState

Loads any cmdlets defined in the specified assembly

LoadCmdlets ( this iss, IEnumerable types ) : InitialSessionState

Loads any cmdlets defined in the specified types

Method Details

LoadCmdlets() public static method

Loads any cmdlets defined in the specified assembly
public static LoadCmdlets ( this iss, Assembly assembly ) : InitialSessionState
iss this The InitialSessionState.
assembly System.Reflection.Assembly The assembly which contains cmdlets.
return System.Management.Automation.Runspaces.InitialSessionState

LoadCmdlets() public static method

Loads any cmdlets defined in the specified types
public static LoadCmdlets ( this iss, IEnumerable types ) : InitialSessionState
iss this The InitialSessionState.
types IEnumerable The types which might be cmdlets.
return System.Management.Automation.Runspaces.InitialSessionState