Overload Definitions of a Method

Just a tip #8

Views

To refer the overload definitions/syntax of a method of an object using the OverloadDefinitions property of a method with simple dot notation, or simply use the method name without the parenthesis ().

<object>.<method>.OverloadDefinitions

# or

<object>.<method>

Example:

$Text = "PowerShell"

# To see all the methods of an object
$Text | Get-Member -MemberType *Method

$Text.LastIndexOf

# or

$Text.LastIndexOf.OverloadDefinitions

Share it on     |   |   |   | 
  Prev:  

Happy New Year #In Console

  :Next  

Convert A String To Title Case

comments powered by Disqus