Public/Get-TypeDocumentation.ps1
<#
.SYNOPSIS Öffnet die Microsoft-Dokumentation des jeweiligen Typen im Browser. .DESCRIPTION Öffnet die Microsoft-Dokumentation des jeweiligen Typen im Browser. .INPUTS System.Object .OUTPUTS System.String .EXAMPLE Get-ChildItem c:\ -Force | Get-TypeDocumentation .EXAMPLE Get-Process | Get-TypeDocumentation .EXAMPLE Get-Service | Get-TypeDocumentation .EXAMPLE 1 | Get-TypeDocumentation #> function Get-TypeDocumentation { param() begin { $My = [HashTable]::Synchronized(@{}) $My.TypeNames = @() } process { $My.TypeNames += $_.GetType().FullName } end { $My.TypeNames | Select-Object -Unique | ForEach-Object -Process { $url = 'https://docs.microsoft.com/de-de/dotnet/api/{0}' -f $_ $_ Start-Process $url } Remove-Variable -Name 'My' -Force } } |