< Back

Get-Parameter

Mon Jan 13, 2020 3:04 am

NAME Get-Parameter



SYNOPSIS

Gets parameter info from a member.





SYNTAX

Get-Parameter [-Method <MethodBase>] [<CommonParameters>]





DESCRIPTION

The Get-Parameter cmdlet gets parameter info from a member.





PARAMETERS

-Method <MethodBase>

Specifies the method to get parameters from.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.Reflection.MethodBase

You can base methods and constructors to this cmdlet.





OUTPUTS

System.Reflection.ParameterInfo

Matched parameters will be returned to the pipeline.





NOTES









-------------------------- EXAMPLE 1 --------------------------



[powershell] | Find-Member Create | Get-Parameter



# Member: System.Management.Automation.PowerShell Create(System.Management.Automation.RunspaceMode)

#

# # ParameterType Name IsIn IsOut IsOpt

# - ------------- ---- ---- ----- -----

# 0 RunspaceMode runspace False False False

#

# Member: System.Management.Automation.PowerShell

Create(System.Management.Automation.Runspaces.InitialSessionState)

#

# # ParameterType Name IsIn IsOut IsOpt

# - ------------- ---- ---- ----- -----

# 0 InitialSessionState initialSessionState False False False



Get parameters for all overloads of the PowerShell.Create method.



RELATED LINKS

Online Version: https://github.com/SeeminglyScience/Cla ... rameter.md

Find-Type

Find-Member

Find-Namespace

Get-Assembly