Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

PSLanguageMode Enumeration

Defines what elements of the Windows PowerShell language are available to external commands of a runspace. This enumeration is used when creating a runspace that restricts which language elements are available. For example, if NoLanguage is specified for a runspace, then scripts that need to be evaluated are not allowed within the runspace. This class is introduced in Windows PowerShell 2.0.


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

'Usage
Dim instance As PSLanguageMode

public enum PSLanguageMode
public enum PSLanguageMode
public enum PSLanguageMode

Member nameDescription
ConstrainedLanguageExposes a subset of the PowerShell language that limits itself to core PowerShell types, does not support method invocation (except on those types), and does not support property setters (except on those types).
FullLanguageCommands that contain any Windows PowerShell language elements are allowed. This field is introduced in Windows PowerShell 2.0.
NoLanguageOnly commands that are using the System.Management.Automation.Runspaces functionality are allowed. This field is introduced in Windows PowerShell 2.0.
RestrictedLanguageCommands that contain scripts that need to be evaluated are not allowed.

 

Target Platforms


Show:
© 2015 Microsoft