| external help file | ISpy.dll-Help.xml |
|---|---|
| Module Name | ISpy |
| online version | https://github.com/trackd/ISpy/blob/main/docs/en-US |
| schema | 2.0.0 |
Retrieves detailed type metadata from a .NET assembly with flexible filtering and classification.
Get-Type [-Path] <String> [-Namespace <String>] [-NamePattern <String>] [-PublicOnly] [-Typekind <TypeKind[]>] [-IncludeCompilerGenerated] [-Settings <DecompilerSettings>] [-Decompiler <CSharpDecompiler>] [<CommonParameters>]
Get-Type [[-InputObject] <Object>] [-Namespace <String>] [-NamePattern <String>] [-PublicOnly] [-Typekind <TypeKind[]>] [-IncludeCompilerGenerated] [-Settings <DecompilerSettings>] [-Decompiler <CSharpDecompiler>] [<CommonParameters>]
Get-Type [-TypeName] <String> [-Namespace <String>] [-NamePattern <String>] [-PublicOnly] [-Typekind <TypeKind[]>] [-IncludeCompilerGenerated] [<CommonParameters>]Get-Type analyzes every type defined in the specified assembly and streams back ISpyTypeInfo
objects. The cmdlet supports namespace, name-pattern, visibility, and type-kind filters while keeping
compiler-generated definitions out of the default view.
When -TypeName is provided, Get-Type resolves matching types from currently loaded AppDomain assemblies,
which enables pathless discovery workflows. You can also pipe a runtime System.Type directly to Get-Type.
PS C:\> Get-Type -Path "MyLibrary.dll" -Namespace "MyCompany.Core" -PublicOnlyThis command returns ISpyTypeInfo objects for public types in the MyCompany.Core namespace.
PS C:\> Get-Type -Path "MyLibrary.dll" -NamePattern '*Manager'This command finds types whose names end with Manager (includes non-public types unless -PublicOnly is specified).
PS C:\> Get-Type -Path "MyLibrary.dll" -PublicOnly -TypeKind Enum | Select-Object FullName, KindThis command streams public enum types and selects FullName and Kind for concise output.
PS C:\> $decompiler = New-Decompiler -Path "MyLibrary.dll"
PS C:\> Get-Type -Path "MyLibrary.dll" -Decompiler $decompiler -PublicOnlyThis command reuses a pre-created decompiler instance.
PS C:\> Get-Type -TypeName System.Management.Automation.LanguagePrimitivesThis command resolves the type from assemblies currently loaded in the PowerShell process.
PS C:\> [System.Management.Automation.LanguagePrimitives] | Get-TypeThis command converts the runtime type into ISpyTypeInfo output.
Path to the assembly file to analyze.
Type: String
Parameter Sets: (All)
Aliases: PSPath, Path
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: FalseResolve type metadata from already-loaded assemblies by full type name or simple type name.
Type: String
Parameter Sets: ByTypeName
Required: True
Position: 0
Accept pipeline input: FalsePipeline input object. Supports assembly path strings and runtime System.Type values.
Type: Object
Parameter Sets: ByInputObject
Required: False
Position: 0
Accept pipeline input: True (ByValue)Limit the results to a specific namespace.
Type: String
Position: Named
Required: False
Accept pipeline input: FalseFilter types by a wildcard-friendly name pattern.
Type: String
Position: Named
Required: False
Accept pipeline input: FalseOnly return public types.
Type: SwitchParameter
Position: Named
Required: False
Accept pipeline input: FalseFilter by one or more type kinds. Other, Class, Interface, Struct, Delegate, Enum, Void, Unknown, Null, None, Dynamic, UnboundTypeArgument, TypeParameter, Array, Pointer, ByReference, Intersection, ArgList, Tuple, ModOpt, ModReq, NInt, NUInt, FunctionPointer
Type: TypeKind[]
Position: Named
Required: False
Accept pipeline input: FalseInclude compiler-generated types
Type: SwitchParameter
Position: Named
Required: False
Accept pipeline input: FalseCustom decompiler settings used when constructing a decompiler.
Type: DecompilerSettings
Position: Named
Required: False
Accept pipeline input: FalseCustom CSharpDecompiler instance to use directly.
Type: CSharpDecompiler
Position: Named
Required: False
Accept pipeline input: FalseEach returned object contains the type's name, namespace, accessibility flags, Kind, and optionally member counts. IsCompilerGenerated flags synthetic definitions and helps downstream plumbing avoid noise.
- Use with Get-AssemblyInfo to correlate type counts and metadata.
- Supports filtering by namespace, name pattern, visibility, and type kind.