Created
November 16, 2015 17:41
-
-
Save pinecones-sx/9dfaa58a79ee5986147d to your computer and use it in GitHub Desktop.
Pass an object into function, function starts a browser session with what MIGHT be the proper reference for the object type.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Global:Get-ObjectTypeInfo{ | |
param($objType) | |
$objTypeAsString=@() | |
if($objType -isnot [type]) { | |
If ($objType -is [string]) {$objTypeAsString=$objType} | |
Else{$objTypeAsString=($objType.GetType()).FullName} | |
} | |
Else{$objTypeAsString=$objType.FullName} | |
Start "https://msdn.microsoft.com/library/$objTypeAsString" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment