This topic has not yet been rated - Rate this topic

PSLanguageMode Enumeration

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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)
'Usage
Dim instance As PSLanguageMode

public enum PSLanguageMode
public enum PSLanguageMode
public enum PSLanguageMode
Member name Description
FullLanguage Commands that contain any Windows PowerShell language elements are allowed. This field is introduced in Windows PowerShell 2.0.
NoLanguage Only commands that are using the Runspace APIs are allowed. This field is introduced in Windows PowerShell 2.0.
RestrictedLanguage Commands that contain scripts that need to be evaluated are not allowed.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)