en-US/ClassExplorer.dll-Help.xml
<?xml version="1.0" encoding="utf-8"?>
<helpItems schema="maml" xmlns="http://msh"> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Find-Member</command:name> <command:verb>Find</command:verb> <command:noun>Member</command:noun> <maml:description> <maml:para>Find properties, methods, fields, etc that fit specific criteria.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>The Find-Member cmdlet searches the AppDomain for members that fit specified criteria. You can search the entire AppDomain, search in specific types, or filter an existing list of members.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Find-Member</maml:name> <command:parameter required="false" variableLength="true" globbing="true" pipelineInput="False" position="0" aliases="none"> <maml:name>Name</maml:name> <maml:Description> <maml:para>Specifies the member name to match.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>Abstract</maml:name> <maml:Description> <maml:para>If specified only abstract members will be matched..</maml:para> </maml:Description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>FilterScript</maml:name> <maml:Description> <maml:para>Specifies a ScriptBlock to invoke as a filter. The variable "$_" or "$PSItem" contains the current member to evaluate.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">ScriptBlock</command:parameterValue> <dev:type> <maml:name>ScriptBlock</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="IncludeNonPublic, F"> <maml:name>Force</maml:name> <maml:Description> <maml:para>If specified non-public members will also be matched.</maml:para> </maml:Description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>IncludeSpecialName</maml:name> <maml:Description> <maml:para>If specified "SpecialName" members will also be matched. This includes accessors like "get_PropertyName", "set_PropertyName", etc.</maml:para> </maml:Description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="named" aliases="none"> <maml:name>InputObject</maml:name> <maml:Description> <maml:para>Specifies the current object to evaluate.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">PSObject</command:parameterValue> <dev:type> <maml:name>PSObject</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>Instance</maml:name> <maml:Description> <maml:para>If specified only members visible on an instance of a class will be matched. In other words, members that are not static.</maml:para> </maml:Description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="MT"> <maml:name>MemberType</maml:name> <maml:Description> <maml:para>Specifies the type of member to return. You can specify multiple member types.</maml:para> </maml:Description> <command:parameterValueGroup> <command:parameterValue required="false" command:variableLength="false">Constructor</command:parameterValue> <command:parameterValue required="false" command:variableLength="false">Event</command:parameterValue> <command:parameterValue required="false" command:variableLength="false">Field</command:parameterValue> <command:parameterValue required="false" command:variableLength="false">Method</command:parameterValue> <command:parameterValue required="false" command:variableLength="false">Property</command:parameterValue> <command:parameterValue required="false" command:variableLength="false">TypeInfo</command:parameterValue> <command:parameterValue required="false" command:variableLength="false">Custom</command:parameterValue> <command:parameterValue required="false" command:variableLength="false">NestedType</command:parameterValue> <command:parameterValue required="false" command:variableLength="false">All</command:parameterValue> </command:parameterValueGroup> <command:parameterValue required="true" variableLength="false">MemberTypes</command:parameterValue> <dev:type> <maml:name>MemberTypes</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>ParameterType</maml:name> <maml:Description> <maml:para>Specifies a type that a member must accept as a parameter to be matched. This parameter will also match base types, implemented interfaces, and the element type of array, byref, pointer and generic types.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">Type</command:parameterValue> <dev:type> <maml:name>Type</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Regex"> <maml:name>RegularExpression</maml:name> <maml:Description> <maml:para>If specified any parameter that accepts wildcards will switch to matching regular expressions.</maml:para> </maml:Description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>ReturnType</maml:name> <maml:Description> <maml:para>Specifies a type that a member must return to match. This includes property types, field types, and method return types. This parameter will also match base types, implemented interfaces, and the element type of array, byref, pointer and generic types.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">Type</command:parameterValue> <dev:type> <maml:name>Type</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>Static</maml:name> <maml:Description> <maml:para>If specified only static members will be matched.</maml:para> </maml:Description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>Virtual</maml:name> <maml:Description> <maml:para>If specified only virtual members will be matched.</maml:para> </maml:Description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>Abstract</maml:name> <maml:Description> <maml:para>If specified only abstract members will be matched..</maml:para> </maml:Description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>FilterScript</maml:name> <maml:Description> <maml:para>Specifies a ScriptBlock to invoke as a filter. The variable "$_" or "$PSItem" contains the current member to evaluate.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">ScriptBlock</command:parameterValue> <dev:type> <maml:name>ScriptBlock</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="IncludeNonPublic, F"> <maml:name>Force</maml:name> <maml:Description> <maml:para>If specified non-public members will also be matched.</maml:para> </maml:Description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>IncludeSpecialName</maml:name> <maml:Description> <maml:para>If specified "SpecialName" members will also be matched. This includes accessors like "get_PropertyName", "set_PropertyName", etc.</maml:para> </maml:Description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="named" aliases="none"> <maml:name>InputObject</maml:name> <maml:Description> <maml:para>Specifies the current object to evaluate.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">PSObject</command:parameterValue> <dev:type> <maml:name>PSObject</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>Instance</maml:name> <maml:Description> <maml:para>If specified only members visible on an instance of a class will be matched. In other words, members that are not static.</maml:para> </maml:Description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="MT"> <maml:name>MemberType</maml:name> <maml:Description> <maml:para>Specifies the type of member to return. You can specify multiple member types.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">MemberTypes</command:parameterValue> <dev:type> <maml:name>MemberTypes</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="true" pipelineInput="False" position="0" aliases="none"> <maml:name>Name</maml:name> <maml:Description> <maml:para>Specifies the member name to match.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>ParameterType</maml:name> <maml:Description> <maml:para>Specifies a type that a member must accept as a parameter to be matched. This parameter will also match base types, implemented interfaces, and the element type of array, byref, pointer and generic types.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">Type</command:parameterValue> <dev:type> <maml:name>Type</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Regex"> <maml:name>RegularExpression</maml:name> <maml:Description> <maml:para>If specified any parameter that accepts wildcards will switch to matching regular expressions.</maml:para> </maml:Description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>ReturnType</maml:name> <maml:Description> <maml:para>Specifies a type that a member must return to match. This includes property types, field types, and method return types. This parameter will also match base types, implemented interfaces, and the element type of array, byref, pointer and generic types.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">Type</command:parameterValue> <dev:type> <maml:name>Type</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>Static</maml:name> <maml:Description> <maml:para>If specified only static members will be matched.</maml:para> </maml:Description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>Virtual</maml:name> <maml:Description> <maml:para>If specified only virtual members will be matched.</maml:para> </maml:Description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>Type, MemberInfo, PSObject</maml:name> </dev:type> <maml:description> <maml:para>If you pass Type objects to this cmdlet it will match members from that type.</maml:para> <maml:para>If you pass MemberInfo objects to this cmdlet it will filter them.</maml:para> <maml:para>If you pass any other type to this cmdlet it will match members from that object's type.</maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <command:returnValue> <dev:type> <maml:name>System.Reflection.MemberInfo</maml:name> </dev:type> <maml:description> <maml:para>Matched MemberInfo objects will be returned to the pipeline.</maml:para> </maml:description> </command:returnValue> </command:returnValues> <maml:alertSet> <maml:alert> <maml:para></maml:para> </maml:alert> </maml:alertSet> <command:examples> <command:example> <maml:title>-------------------------- EXAMPLE 1 --------------------------</maml:title> <dev:code>Find-Member GetPowerShell # ReflectedType: System.Management.Automation.ScriptBlock # # Name MemberType IsStatic Definition # ---- ---------- -------- ---------- # GetPowerShell Method False PowerShell GetPowerShell(Object[] args) # GetPowerShell Method False PowerShell GetPowerShell(Boolean isTrustedInput, Obj... # GetPowerShell Method False PowerShell GetPowerShell(Dictionary`2 variables, Obj... # GetPowerShell Method False PowerShell GetPowerShell(Dictionary`2 variables, Dic... # GetPowerShell Method False PowerShell GetPowerShell(Dictionary`2 variables, Dic...</dev:code> <dev:remarks> <maml:para>Find all members in the AppDomain with the name "GetPowerShell"</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------------- EXAMPLE 2 --------------------------</maml:title> <dev:code>Find-Member -ReturnType System.Management.Automation.Language.Ast -Static # ReflectedType: System.Management.Automation.CommandCompletion # # Name MemberType IsStatic Definition # ---- ---------- -------- ---------- # MapStringInputToP... Method True Tuple`3 MapStringInputToParsedInput(String input, In... # # ReflectedType: System.Management.Automation.Language.UsingExpressionAst # # Name MemberType IsStatic Definition # ---- ---------- -------- ---------- # ExtractUsingVariable Method True VariableExpressionAst ExtractUsingVariable(UsingExpr... # # ReflectedType: System.Management.Automation.Language.Parser # # Name MemberType IsStatic Definition # ---- ---------- -------- ---------- # ParseFile Method True ScriptBlockAst ParseFile(String fileName, Token[]& t... # ParseInput Method True ScriptBlockAst ParseInput(String input, Token[]& tok... # ParseInput Method True ScriptBlockAst ParseInput(String input, String fileN...</dev:code> <dev:remarks> <maml:para>Find all static members in the AppDomain that return any type of AST.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------------- EXAMPLE 3 --------------------------</maml:title> <dev:code>Find-Member -ParameterType runspace -Virtual # ReflectedType: System.Management.Automation.Host.IHostSupportsInteractiveSession # # Name MemberType IsStatic Definition # ---- ---------- -------- ---------- # PushRunspace Method False Void PushRunspace(Runspace runspace) # # # ReflectedType: Microsoft.PowerShell.Internal.IPSConsoleReadLineMockableMethods # # Name MemberType IsStatic Definition # ---- ---------- -------- ---------- # RunspaceIsRemote Method False Boolean RunspaceIsRemote(Runspace runspace)</dev:code> <dev:remarks> <maml:para>Find all virtual members in the AppDomain that take any runspace type as a parameter.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------------- EXAMPLE 4 --------------------------</maml:title> <dev:code>Find-Member Parse* -ParameterType System.Management.Automation.Language.Token # ReflectedType: System.Management.Automation.Language.Parser # # Name MemberType IsStatic Definition # ---- ---------- -------- ---------- # ParseFile Method True ScriptBlockAst ParseFile(String fileName, Token[]& ... # ParseInput Method True ScriptBlockAst ParseInput(String input, Token[]& to... # ParseInput Method True ScriptBlockAst ParseInput(String input, String file...</dev:code> <dev:remarks> <maml:para>Find all members that start with the word Parse and take Token as a parameter. This example also demonstrates how this will even match the element of a type that is both an array and ByRef type.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------------- EXAMPLE 5 --------------------------</maml:title> <dev:code>$members = Find-Member -Force $members.Count # 286183</dev:code> <dev:remarks> <maml:para>Find all members in the AppDomain including non-public.</maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks> <maml:navigationLink> <maml:linkText>Online Version:</maml:linkText> <maml:uri>https://github.com/SeeminglyScience/ClassExplorer/blob/master/docs/en-US/Find-Member.md</maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>Find-Type</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>Get-Assembly</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>Get-Parameter</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> </command:relatedLinks> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Find-Type</command:name> <command:verb>Find</command:verb> <command:noun>Type</command:noun> <maml:description> <maml:para>Find .NET classes in the AppDomain.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>The Find-Type cmdlet searches the AppDomain for .NET classes that match specified criteria.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Find-Type</maml:name> <command:parameter required="false" variableLength="true" globbing="true" pipelineInput="False" position="0" aliases="none"> <maml:name>Name</maml:name> <maml:Description> <maml:para>Specifies the name of the type to match. For example, the name of the type "System.Text.StringBuilder" is "StringBuilder".</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="true" pipelineInput="False" position="1" aliases="none"> <maml:name>Namespace</maml:name> <maml:Description> <maml:para>Specifies the namespace to match. For exmaple, the namespace of the type "System.Text.StringBuilder" is "System.Text".</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>FilterScript</maml:name> <maml:Description> <maml:para>Specifies a ScriptBlock to invoke as a filter. The variable "$_" or "$PSItem" contains the current type to evaluate.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">ScriptBlock</command:parameterValue> <dev:type> <maml:name>ScriptBlock</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="IncludeNonPublic, F"> <maml:name>Force</maml:name> <maml:Description> <maml:para>If specified nonpublic types will also be matched.</maml:para> </maml:Description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="true" pipelineInput="False" position="named" aliases="none"> <maml:name>FullName</maml:name> <maml:Description> <maml:para>Specifies the full name including namespace to match.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Interface"> <maml:name>ImplementsInterface</maml:name> <maml:Description> <maml:para>Specifies a interface that the type must implement to match.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">Type</command:parameterValue> <dev:type> <maml:name>Type</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Base"> <maml:name>InheritsType</maml:name> <maml:Description> <maml:para>Specifies a type that the type must inherit to match.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">Type</command:parameterValue> <dev:type> <maml:name>Type</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="named" aliases="none"> <maml:name>InputObject</maml:name> <maml:Description> <maml:para>Specifies the current object to evaluate.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">PSObject</command:parameterValue> <dev:type> <maml:name>PSObject</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Regex"> <maml:name>RegularExpression</maml:name> <maml:Description> <maml:para>If specified all parameters that accept wildcards will match regular expressions instead.</maml:para> </maml:Description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>FilterScript</maml:name> <maml:Description> <maml:para>Specifies a ScriptBlock to invoke as a filter. The variable "$_" or "$PSItem" contains the current type to evaluate.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">ScriptBlock</command:parameterValue> <dev:type> <maml:name>ScriptBlock</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="IncludeNonPublic, F"> <maml:name>Force</maml:name> <maml:Description> <maml:para>If specified nonpublic types will also be matched.</maml:para> </maml:Description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="true" pipelineInput="False" position="named" aliases="none"> <maml:name>FullName</maml:name> <maml:Description> <maml:para>Specifies the full name including namespace to match.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Interface"> <maml:name>ImplementsInterface</maml:name> <maml:Description> <maml:para>Specifies a interface that the type must implement to match.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">Type</command:parameterValue> <dev:type> <maml:name>Type</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Base"> <maml:name>InheritsType</maml:name> <maml:Description> <maml:para>Specifies a type that the type must inherit to match.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">Type</command:parameterValue> <dev:type> <maml:name>Type</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="named" aliases="none"> <maml:name>InputObject</maml:name> <maml:Description> <maml:para>Specifies the current object to evaluate.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">PSObject</command:parameterValue> <dev:type> <maml:name>PSObject</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="true" pipelineInput="False" position="0" aliases="none"> <maml:name>Name</maml:name> <maml:Description> <maml:para>Specifies the name of the type to match. For example, the name of the type "System.Text.StringBuilder" is "StringBuilder".</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="true" pipelineInput="False" position="1" aliases="none"> <maml:name>Namespace</maml:name> <maml:Description> <maml:para>Specifies the namespace to match. For exmaple, the namespace of the type "System.Text.StringBuilder" is "System.Text".</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Regex"> <maml:name>RegularExpression</maml:name> <maml:Description> <maml:para>If specified all parameters that accept wildcards will match regular expressions instead.</maml:para> </maml:Description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>System.Reflection.Assembly, System.Type, System.Management.Automation.PSObject</maml:name> </dev:type> <maml:description> <maml:para>If you pass assemblies to this cmdlet it will match types from that assembly.</maml:para> <maml:para>If you pass types to this cmdlet it will filter the passed types.</maml:para> <maml:para>If you pass any other object to this cmdlet it will return the type of that object.</maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <command:returnValue> <dev:type> <maml:name>System.Type</maml:name> </dev:type> <maml:description> <maml:para>Matched Type objected will be returned to the pipeline.</maml:para> </maml:description> </command:returnValue> </command:returnValues> <maml:alertSet> <maml:alert> <maml:para></maml:para> </maml:alert> </maml:alertSet> <command:examples> <command:example> <maml:title>-------------------------- EXAMPLE 1 --------------------------</maml:title> <dev:code>$types = Find-Type $types.Count # 5106</dev:code> <dev:remarks> <maml:para>Find all the types currently loaded in the AppDomain.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------------- EXAMPLE 2 --------------------------</maml:title> <dev:code>Find-Type -InheritsType System.Management.Automation.Runspaces.RunspaceConnectionInfo # IsPublic IsSerial Name BaseType # -------- -------- ---- -------- # True False WSManConnectionInfo System.Management.Automation.Runspac... # True False NamedPipeConnectionInfo System.Management.Automation.Runspac... # True False SSHConnectionInfo System.Management.Automation.Runspac... # True False VMConnectionInfo System.Management.Automation.Runspac... # True False ContainerConnectionInfo System.Management.Automation.Runspac...</dev:code> <dev:remarks> <maml:para>Find all types that inherit the class RunspaceConnectionInfo.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------------- EXAMPLE 3 --------------------------</maml:title> <dev:code>Find-Type -Interface -Namespace System.Management.Automation { Find-Member -InputObject $_ -ParameterType System.Management.Automation.Language.Ast } # IsPublic IsSerial Name BaseType # -------- -------- ---- -------- # True False IArgumentCompleter</dev:code> <dev:remarks> <maml:para>Find all interfaces in the namespace System.Management.Automation that have a member that takes an AST as a parameter.</maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks> <maml:navigationLink> <maml:linkText>Online Version:</maml:linkText> <maml:uri>https://github.com/SeeminglyScience/ClassExplorer/blob/master/docs/en-US/Find-Type.md</maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>Find-Member</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>Get-Assembly</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>Get-Parameter</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> </command:relatedLinks> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-Assembly</command:name> <command:verb>Get</command:verb> <command:noun>Assembly</command:noun> <maml:description> <maml:para>Get assemblies loaded in the AppDomain.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>The Get-Assembly cmdlet gets assemblies loaded in the AppDomain.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-Assembly</maml:name> <command:parameter required="false" variableLength="true" globbing="true" pipelineInput="False" position="0" aliases="none"> <maml:name>Name</maml:name> <maml:Description> <maml:para>Specifies the AssemblyName to match.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="true" pipelineInput="False" position="0" aliases="none"> <maml:name>Name</maml:name> <maml:Description> <maml:para>Specifies the AssemblyName to match.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>None</maml:name> </dev:type> <maml:description> <maml:para>This cmdlet does not accept input from the pipeline.</maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <command:returnValue> <dev:type> <maml:name>System.Reflection.Assembly</maml:name> </dev:type> <maml:description> <maml:para>Matched Assembly objects will be returned to the pipeline.</maml:para> </maml:description> </command:returnValue> </command:returnValues> <maml:alertSet> <maml:alert> <maml:para></maml:para> </maml:alert> </maml:alertSet> <command:examples> <command:example> <maml:title>-------------------------- EXAMPLE 1 --------------------------</maml:title> <dev:code>$results = Get-Assembly $results.Count # 52</dev:code> <dev:remarks> <maml:para>Get all assemblies loaded into the current AppDomain</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------------- EXAMPLE 2 --------------------------</maml:title> <dev:code>Get-Assembly *Automation* # GAC Version Location # --- ------- -------- # True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management.Automation\v...</dev:code> <dev:remarks> <maml:para>Get assemblies that match a wildcard.</maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks> <maml:navigationLink> <maml:linkText>Online Version:</maml:linkText> <maml:uri>https://github.com/SeeminglyScience/ClassExplorer/blob/master/docs/en-US/Get-Assembly.md</maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>Find-Type</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>Find-Member</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>Get-Parameter</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> </command:relatedLinks> </command:command> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-Parameter</command:name> <command:verb>Get</command:verb> <command:noun>Parameter</command:noun> <maml:description> <maml:para>Gets parameter info from a member.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>The Get-Parameter cmdlet gets parameter info from a member.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-Parameter</maml:name> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="named" aliases="none"> <maml:name>Method</maml:name> <maml:Description> <maml:para>Specifies the method to get parameters from.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">MethodBase</command:parameterValue> <dev:type> <maml:name>MethodBase</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="named" aliases="none"> <maml:name>Method</maml:name> <maml:Description> <maml:para>Specifies the method to get parameters from.</maml:para> </maml:Description> <command:parameterValue required="true" variableLength="false">MethodBase</command:parameterValue> <dev:type> <maml:name>MethodBase</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>System.Reflection.MethodBase</maml:name> </dev:type> <maml:description> <maml:para>You can base methods and constructors to this cmdlet.</maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <command:returnValue> <dev:type> <maml:name>System.Reflection.ParameterInfo</maml:name> </dev:type> <maml:description> <maml:para>Matched parameters will be returned to the pipeline.</maml:para> </maml:description> </command:returnValue> </command:returnValues> <maml:alertSet> <maml:alert> <maml:para></maml:para> </maml:alert> </maml:alertSet> <command:examples> <command:example> <maml:title>-------------------------- EXAMPLE 1 --------------------------</maml:title> <dev:code>[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</dev:code> <dev:remarks> <maml:para>Get parameters for all overloads of the PowerShell.Create method.</maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks> <maml:navigationLink> <maml:linkText>Online Version:</maml:linkText> <maml:uri>https://github.com/SeeminglyScience/ClassExplorer/blob/master/docs/en-US/Get-Parameter.md</maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>Find-Type</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>Find-Member</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>Get-Assembly</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> </command:relatedLinks> </command:command> </helpItems> |