EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

InitialSessionState Properties

  Name Description
public property ApartmentState Gets and sets the apartment state of the thread used to run commands in the runspace. This property is introduced in Windows PowerShell 2.0.
public property Assemblies Gets a collection that contains the assemblies of the initial session state. The host application can use this collection to add assemblies to the session state. This property is introduced in Windows PowerShell 2.0.
public property AuthorizationManager Gets and sets the authorization manager of the initial session state. This property is introduced in Windows PowerShell 2.0.
public property Commands Gets a collection that contains the commands, such as cmdlets, scripts, functions, and aliases, of the initial session state. The host application can use this collection to add commands to the session state. This property is introduced in Windows PowerShell 2.0.
public property DisableFormatUpdates Gets or sets a value that indicates whether updates to the format table are disabled. This includes disabling format table updates through Windows PowerShell cmdlets such as Update-FormatData and Import-Module.
public property Formats Gets a collection that contains the formatting files of the initial session state. The host application can use this collection to add formatting files to the session state. Formatting files define how .NET Framework objects are displayed by Windows PowerShell. This property is introduced in Windows PowerShell 2.0.
public property LanguageMode Gets and sets the language mode for runspaces that are opened by using this initial session state. For example, if the language mode is restricted then the runspace will be opened in restricted language mode. This property is introduced in Windows PowerShell 2.0.
public property Modules Gets the list of modules that can be used to load the default cmdlets, providers, etc., of an initial session state.
public property Providers Gets a collection that contains the providers of the initial session state. The host application can use this collection to add providers to the session state. This property is introduced in Windows PowerShell 2.0.
public property ThreadOptions Gets and sets a thread option that identifies whether a new thread is created each time a command is run. This property is introduced in Windows PowerShell 2.0.
public property ThrowOnRunspaceOpenError Gets and sets a Boolean value that indicates whether an exception is thrown while opening the runspace. This property is introduced in Windows PowerShell 2.0.
public property Types Gets a collection that contains the type files of the initial session state. The host application can use this collection to add type files to the session state. Type files are used to extend the .NET Framework types that are used by commands. This property is introduced in Windows PowerShell 2.0.
public property UseFullLanguageModeInDebugger Gets and sets a Boolean value that indicates whether the Windows PowerShell debugger will use FullLanguage mode while troubleshooting scripts.This property is introduced in Windows PowerShell 2.0.
public property Variables Gets a collection that contains the variables of the initial session state. The host application can use this collection to add variables to the session state. This property is introduced in Windows PowerShell 2.0.


Anzeigen:
© 2014 Microsoft