SessionStateAssemblyEntry Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines an assembly for an initial session state configuration. The initial session state of a runspace defines the elements, such as assemblies, that are available when the runspace is opened. This class is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation.Runspaces
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.Runspaces.InitialSessionStateEntry
    System.Management.Automation.Runspaces.SessionStateAssemblyEntry

public sealed class SessionStateAssemblyEntry : InitialSessionStateEntry

NameDescription
System_CAPS_pubmethodSessionStateAssemblyEntry(String)

Creates a new SessionStateAssemblyEntry object that contains the name of the assembly. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodSessionStateAssemblyEntry(String, String)

Creates a new SessionStateAssemblyEntry object that contains the assembly name and the path. This constructor is introduced by Windows PowerShell 2.0.

NameDescription
System_CAPS_pubpropertyFileName

Gets the path to the assembly of this entry. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyModule

Gets information about the module defined by this session state entry. This property is introduced in Windows PowerShell 2.0.(Inherited from InitialSessionStateEntry.)

System_CAPS_pubpropertyName

Gets the name of the entry for the derived class. This property is introduced in Windows PowerShell 2.0.(Inherited from InitialSessionStateEntry.)

System_CAPS_pubpropertyPSSnapIn

Gets information about the snap-in defined by the session state entry. This property is introduced in Windows PowerShell 2.0.(Inherited from InitialSessionStateEntry.)

NameDescription
System_CAPS_pubmethodClone()

Creates an exact copy of the current SessionStateAssemblyEntry object. This method is introduced in Windows PowerShell 2.0.(Overrides InitialSessionStateEntry.Clone().)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

The assembly entry is added to the initial session state through the Assemblies property of the InitialSessionState object.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: