Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSSnapInInfo Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Provides information about a Windows PowerShell snap-in. Snap-ins are used to add and cmdlets or Windows PowerShell provider to a session.

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

System.Object
  System.Management.Automation.PSSnapInInfo

public class PSSnapInInfo

NameDescription
System_CAPS_pubpropertyApplicationBase

Gets the directory where the snap-in is installed.

System_CAPS_pubpropertyAssemblyName

Gets the name of the assembly where the Windows PowerShell snap-in class is implemented.

System_CAPS_pubpropertyDescription

Gets a description of the Windows PowerShell snap-in.

System_CAPS_pubpropertyFormats

Gets the list of format files that are loaded for the Windows PowerShell snap-in.

System_CAPS_pubpropertyIsDefault

Gets a Boolean value that indicates whether the snap-in is a default snap-in provided by Windows PowerShell.

System_CAPS_pubpropertyLogPipelineExecutionDetails

Gets and sets a Boolean value that indicates whether pipeline execution events should be logged for the cmdlets and providers of the snap-in.

System_CAPS_pubpropertyModuleName

Gets the path of the assembly where the Windows PowerShell snap-in class is implemented.

System_CAPS_pubpropertyName

Gets the name of the Windows PowerShell snap-in.

System_CAPS_pubpropertyPSVersion

Gets the version number of Windows PowerShell that was used to create the Windows PowerShell snap-in.

System_CAPS_pubpropertyTypes

Gets a list of the types data files loaded for the Windows PowerShell snap-in.

System_CAPS_pubpropertyVendor

Gets the name of the vendor who created the Windows PowerShell snap-in.

System_CAPS_pubpropertyVersion

Gets the version of the Windows PowerShell snap-in.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Converts the name of the snap-in into a string.(Overrides Object.ToString().)

A Windows PowerShell snap-in is created using one of the following two classes:

PSSnapIn

Derive from this class to create a snap-in that registers all the cmdlets and providers in an assembly.

CustomPSSnapIn

Derive from this class to create a snap-in that registers a specific list of cmdlets and providers. A custom snap-in can be used to register a subset of the cmdlets and providers in a large assembly or register cmdlets and providers that are implemented in different assemblies.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

Show: