Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ConstrainedSessionStateEntry Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Serves as a base class for those session state entries that can be specified as public or private entries when added to an InitialSessionState object. This includes entries for commands, providers, and variables. This class is introduced in Windows PowerShell 2.0.

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


public abstract class ConstrainedSessionStateEntry : InitialSessionStateEntry

NameDescription
System_CAPS_protmethodConstrainedSessionStateEntry(String, SessionStateEntryVisibility)

Creates a new ConstrainedSessionStateEntry object. This constructor is introduced by Windows PowerShell 2.0.

NameDescription
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.)

System_CAPS_pubpropertyVisibility

Gets and sets a Boolean value that indicates whether the session state entry is public or private. This property is introduced in Windows PowerShell 2.0.

NameDescription
System_CAPS_pubmethodClone()

Makes an exact copy of the current InitialSessionStateEntry object. This method is introduced in Windows PowerShell 2.0.(Inherited from InitialSessionStateEntry.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

The relationship between public and private entries used here is very similar to the relationship of class and object members in a typical object-oriented programming language. A private session state entry is similar to a private member of a class that is not available when using the object of the class. A public session state entry is similar to a public member of a class that is available when the object is used. Public session state entries are visible to those using the runspace that is defined by the session state.

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: