Collapse the table of content
Expand the table of content
展开 最小化
EN
此内容没有您的语言版本,但有英语版本。

InitialSessionState.Create Method

Creates an InitialSessionState object. The variants of this method can create an InitialSessionState object that is empty, that specifies a snap-in or snap-in collection, and that specifies a snap-in collection and warning exception. This method is introduced in Windows PowerShell 2.0.

NameDescription
InitialSessionState.Create ()Creates an empty InitialSessionState object that contains none of the commands provided by Windows PowerShell. When this method is used, each element of the session state must be added explicitly.This method is introduced in Windows PowerShell 2.0.
InitialSessionState.Create (String)Creates an InitialSessionState object that includes the name of the snap-in or the name of a snap-in collection. This method is introduced in Windows PowerShell 2.0.
InitialSessionState.Create (String[], PSConsoleLoadException)Creates an InitialSessionState object that includes the names of the snap-ins to load. This method is introduced in Windows PowerShell 2.0.


显示:
© 2015 Microsoft