SessionStateCmdletEntry Constructor

Creates a new SessionStateCmdletEntry object that contains the name of the cmdlet, the .NET Framework type of the cmdlet class, and the Help file of the cmdlet. This constructor is introduced by Windows PowerShell 2.0.


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

'Usage
Dim name As String
Dim implementingType As Type
Dim helpFileName As String

Dim instance As New SessionStateCmdletEntry(name, implementingType, helpFileName)

public SessionStateCmdletEntry (
	string name,
	Type implementingType,
	string helpFileName
)
public SessionStateCmdletEntry (
	String name, 
	Type implementingType, 
	String helpFileName
)
public function SessionStateCmdletEntry (
	name : String, 
	implementingType : Type, 
	helpFileName : String
)

Parameters

name

The name of the cmdlet.

implementingType

The .NET Framework type of the class where the cmdlet is implemented.

helpFileName

The fully qualified path to the Help file for the cmdlet. Do not include any language specific sub-directories. Windows PowerShell appends the appropriate language sub-directories when they are needed.

The cmdlet entry is added to the initial session state through the Commands property of the InitialSessionState object.


 

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Server 2008, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional, Windows Vista, Windows Server 2003 R2, Windows XP, Windows 7, Windows 2008 R2, Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft