< Back
Get-Type
Post
NAME Get-Type
SYNOPSIS
Get exported types in the current session
SYNTAX
Get-Type [[-Module] <String>] [[-Assembly] <String>] [[-FullName] <String>] [[-Namespace] <String>] [[-BaseType]
<String>] [-IsEnum] [<CommonParameters>]
DESCRIPTION
Get exported types in the current session
PARAMETERS
-Module <String>
Filter on Module. Accepts wildcard
Required? false
Position? 1
Default value *
Accept pipeline input? false
Accept wildcard characters? false
-Assembly <String>
Filter on Assembly. Accepts wildcard
Required? false
Position? 2
Default value *
Accept pipeline input? false
Accept wildcard characters? false
-FullName <String>
Filter on FullName. Accepts wildcard
Required? false
Position? 3
Default value *
Accept pipeline input? false
Accept wildcard characters? false
-Namespace <String>
Filter on Namespace. Accepts wildcard
Required? false
Position? 4
Default value *
Accept pipeline input? false
Accept wildcard characters? false
-BaseType <String>
Filter on BaseType. Accepts wildcard
Required? false
Position? 5
Default value *
Accept pipeline input? false
Accept wildcard characters? false
-IsEnum [<SwitchParameter>]
Filter on IsEnum.
Required? false
Position? named
Default value False
Accept pipeline input? false
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
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>#List the full name of all Enums in the current session
Get-Type -IsEnum $true | Select -ExpandProperty FullName | Sort -Unique
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>#Connect to a web service and list all the exported types
#Connect to the web service, give it a namespace we can search on
$weather = New-WebServiceProxy -uri "http://www.webservicex.net/globalweather.asmx?wsdl" -Namespace
GlobalWeather
#Search for the namespace
Get-Type -NameSpace GlobalWeather
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True False MyClass1ex_net_globalweather_asmx_wsdl System.Object
True False GlobalWeather
System.Web.Services.Protocols.SoapHttpClientProtocol
True True GetWeatherCompletedEventHandler System.MulticastDelegate
True False GetWeatherCompletedEventArgs System.ComponentModel.AsyncCompletedEventArgs
True True GetCitiesByCountryCompletedEventHandler System.MulticastDelegate
True False GetCitiesByCountryCompletedEventArgs System.ComponentModel.AsyncCompletedEventArgs
RELATED LINKS
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Invoke-MrPesterToSpeech; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
Invoke-MrPesterToSpeech [-Quiet] [<CommonParameters>]
ModuleName : MrToolkit
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Invoke-MrPesterToSpeech
Category : Function
Component :
Role :
Functionality :
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Invoke-MrTDDWorkflow; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
Invoke-MrTDDWorkflow [[-Path] <string>] [[-Seconds] <int>] [<CommonParameters>]
ModuleName : MrToolkit
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Invoke-MrTDDWorkflow
Category : Function
Component :
Role :
Functionality :
SYNOPSIS
Get exported types in the current session
SYNTAX
Get-Type [[-Module] <String>] [[-Assembly] <String>] [[-FullName] <String>] [[-Namespace] <String>] [[-BaseType]
<String>] [-IsEnum] [<CommonParameters>]
DESCRIPTION
Get exported types in the current session
PARAMETERS
-Module <String>
Filter on Module. Accepts wildcard
Required? false
Position? 1
Default value *
Accept pipeline input? false
Accept wildcard characters? false
-Assembly <String>
Filter on Assembly. Accepts wildcard
Required? false
Position? 2
Default value *
Accept pipeline input? false
Accept wildcard characters? false
-FullName <String>
Filter on FullName. Accepts wildcard
Required? false
Position? 3
Default value *
Accept pipeline input? false
Accept wildcard characters? false
-Namespace <String>
Filter on Namespace. Accepts wildcard
Required? false
Position? 4
Default value *
Accept pipeline input? false
Accept wildcard characters? false
-BaseType <String>
Filter on BaseType. Accepts wildcard
Required? false
Position? 5
Default value *
Accept pipeline input? false
Accept wildcard characters? false
-IsEnum [<SwitchParameter>]
Filter on IsEnum.
Required? false
Position? named
Default value False
Accept pipeline input? false
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
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>#List the full name of all Enums in the current session
Get-Type -IsEnum $true | Select -ExpandProperty FullName | Sort -Unique
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>#Connect to a web service and list all the exported types
#Connect to the web service, give it a namespace we can search on
$weather = New-WebServiceProxy -uri "http://www.webservicex.net/globalweather.asmx?wsdl" -Namespace
GlobalWeather
#Search for the namespace
Get-Type -NameSpace GlobalWeather
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True False MyClass1ex_net_globalweather_asmx_wsdl System.Object
True False GlobalWeather
System.Web.Services.Protocols.SoapHttpClientProtocol
True True GetWeatherCompletedEventHandler System.MulticastDelegate
True False GetWeatherCompletedEventArgs System.ComponentModel.AsyncCompletedEventArgs
True True GetCitiesByCountryCompletedEventHandler System.MulticastDelegate
True False GetCitiesByCountryCompletedEventArgs System.ComponentModel.AsyncCompletedEventArgs
RELATED LINKS
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Invoke-MrPesterToSpeech; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
Invoke-MrPesterToSpeech [-Quiet] [<CommonParameters>]
ModuleName : MrToolkit
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Invoke-MrPesterToSpeech
Category : Function
Component :
Role :
Functionality :
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Invoke-MrTDDWorkflow; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
Invoke-MrTDDWorkflow [[-Path] <string>] [[-Seconds] <int>] [<CommonParameters>]
ModuleName : MrToolkit
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Invoke-MrTDDWorkflow
Category : Function
Component :
Role :
Functionality :