how to use methods

Welcome Forums General PowerShell Q&A how to use methods

This topic contains 1 reply, has 2 voices, and was last updated by

3 years, 11 months ago.

  • Author
  • #23579

    Points: 1
    Rank: Member

    I've tried understanding how to use methods, but still am unclear on how to read their "spec" in get-member.
    Is there a guide on how to understand how the descriptions for methods should be read?
    for example
    string ToString(), string ToString(string format), string ToString(System.IFormatProvider provider), string
    doesn't tell me how I should can/use this method.

  • #23581

    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    Get-Member can't really give you documentation. Search MSDN for the type name, e.g., System.String. That'll get you the class documentation. Many methods, like ToString, provide multiple means of using them, called overrides. Think of them as different parameter sets for the method. The docs will include them all.

The topic ‘how to use methods’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort