Windows Dev Center

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

InitialSessionState Methods

(see also Protected Methods)
 NameDescription
public methodCloneCreates an exact copy of the current InitialSessionState object. This method is introduced in Windows PowerShell 2.0.
public methodstaticCreateOverloaded. 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.
public methodstaticCreateDefaultCreates an InitialSessionState object that contains the default commands provided by Windows PowerShell. This method is introduced in Windows PowerShell 2.0.
public methodstaticCreateDefault2Creates a default Windows PowerShell session with the default cmdlets, providers, etc., that are loaded by the modules listed in the Modules property. Introduced in Windows PowerShell 3.0.
public methodstaticCreateFromOverloaded. Creates an InitialSessionState object from one or more snap-ins. The variants of this method can create the object from a single snap-in located at a specified path, or from a set of snap-ins located at several paths. This method is introduced in Windows PowerShell 2.0.
public methodstaticCreateRestrictedCreates an InitialSessionState object that can be used to create sessions whose Windows PowerShell commands are restricted based on the capabilities of the session. This method is introduced in Windows PowerShell 2.0.
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodImportPSModuleOverloaded.  
public methodImportPSModulesFromPathImports all Windows PowerShell modules from a module path by default. Introduced in Windows PowerShell 3.0.
public methodImportPSSnapInAdds a snap-in to the initial session state. When the snap-in is added to the collection, the assembly is loaded and all elements (cmdlets, formats, and types) are added to the corresponding elements in the InitialSessionState object. This method is introduced in Windows PowerShell 2.0.
public methodToString  (Inherited from Object)

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)


Anzeigen:
© 2015 Microsoft